Name.isAssigned - check if the name is assigned a value
|
Calling Sequence
|
|
boolean isAssigned( ) throws MapleException
|
|
Description
|
|
•
|
The isAssigned function returns true if the Name has been assigned a value, and false otherwise.
|
|
|
Examples
|
|
import com.maplesoft.openmaple.*;
|
import com.maplesoft.externalcall.MapleException;
|
class Example
|
{
|
public static void main( String notused[] ) throws MapleException
|
{
|
String mapleArgs[];
|
Engine engine;
|
Name name;
|
Algebraic e;
|
mapleArgs = new String[1];
|
mapleArgs[0] = "java";
|
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
|
null, null );
|
name = (Name)engine.evaluate( "a:" );
|
System.out.println( name.isAssigned() );
|
e = engine.evaluate( "1:" );
|
name.assign( e );
|
System.out.println( name.isAssigned() );
|
name = (Name)engine.evaluate( "int:" );
|
System.out.println( name.isAssigned() );
|
}
|
}
|
|
|
Executing this code produces the following output.
|
|
Download Help Document
Was this information helpful?