Name.isAssigned
check if the name is assigned a value
Calling Sequence
Description
Examples
boolean isAssigned( ) throws MapleException
The isAssigned function returns true if the Name has been assigned a value, 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 );
Name name = (Name)engine.evaluate( "a:" );
System.out.println( name.isAssigned() );
Algebraic e = engine.evaluate( "1:" );
name.assign( e );
name = (Name)engine.evaluate( "int:" );
}
Executing this code produces the following output.
false
true
See Also
ExternalCalling/Java/MapleException
OpenMaple
OpenMaple/Java/Algebraic
OpenMaple/Java/API
OpenMaple/Java/Name
OpenMaple/Java/Name/assign
Download Help Document