Syntax: #NEWVAR varname value defaultval

Creates a new variable in the current class. Does not search outside the class for any existing variable of the same name. Normally the #VAR command will search for existing variables and modify their value rather than creating a new variable. You can force #VAR to create a variable in the current class by using the syntax:

#VAR ./varname value

#NEWVAR is a shortcut for this syntax, but is a bit more efficient.

NEWVAR examples

#VAR A 1
#CLASS NewClass

creates a new variable @A within the current class (NewClass in this example) with a value of 123. Does not modify the existing @A variable like the #VAR command would.

Add comment

Login or register to post comments