Algebraic.isNULL
check if the current Algebraic represents the Maple NULL expression
Calling Sequence
Description
Examples
boolean isNULL() throws MapleException
The isNULL function returns true if the current Algebraic object represents the Maple NULL expression (an expression sequence of length 1) and false otherwise.
import com.maplesoft.openmaple.*;
import com.maplesoft.externalcall.MapleException;
class Example
{
public static void main( String notused[] ) throws MapleException
String[] mapleArgs = { "java" };
Engine engine = new Engine( mapleArgs, new EngineCallBacksDefault(), null, null );
Algebraic a1 = engine.evaluate( "1:" );
if ( a1.isNULL() )
System.out.println( "NULL" );
}
else
System.out.println( "Not NULL" );
a1 = engine.evaluate( "NULL:" );
Executing this code should produce the following output.
Not NULL
NULL
See Also
ExternalCalling/Java/MapleException
OpenMaple
OpenMaple/Java/Algebraic
OpenMaple/Java/API
Download Help Document