Script Aliases

Top  Previous  Next

Script Aliases in FreeFlyer allow you to create a simple abbreviation for more complex expressions in FreeForm script.

 

 

An Alias can refer to any of the following types of expressions:

 

Objects

Child Objects

Child Objects with type casting

Object Properties

Object Methods with set input arguments

Math expressions

 

 

Once the Alias has been created, it can be used anywhere in FreeFlyer script in place of the expression it was initialized with:

 

 

Aliases will behave just as if the expressions they refer to have been substituted directly into the FreeFlyer script. For example, Aliases that refer to properties or methods with a state are initialized separately for each time the Alias is used.

 

 

 

Scoping


Script Aliases can be created within loops, such as a While, For, or If loop, but an Alias created in a loop cannot be used outside the loop. In the following example, the Alias "a" can be used inside the While loop in order to generate a Plot, but if you attempt to Report the Alias "a" outside the While loop, a syntax error will be generated.

 

 

 

Limitations


Script Aliases cannot refer to expressions containing any FreeFlyer commands.

 

 

Script Aliases can be passed into Procedures, but they cannot be used to Define a Procedure.