Some functions can change or define variables. If a function defines a new variable, that variable belongs to the scope where it was created and is available to all functions or scopes nested inside. These functions are grouped in the BasicExportFunctionSet.
The first parameter of these functions is always the variable name written in quotation marks. Additional parameters can follow, depending on the function. All parameters are expressions.
For example, if you want to create a new variable, you can use the $Declare function. This function takes two parameters: a new variable name in quotation marks and a value.
Example:
$Declare("myVariable", 10)Another example is the $Max function (not to be confused with the expression function Max), which calculates the maximum from an arbitrary number of parameters (expressions) and changes the value of an existing variable.
Example:
$Max( "myVariable", modelVertexCount, 5000000)