Script Quick Reference
Table of Contents
- If
- If/Else
- If/Else if
- For Loop
- For IN Loop Array
- For IN loop Struct
- For In Loop Query
- For In Loop List
- Array Loop
- While Loop
- Closure
- User Defined Function
- Do While Loop
- Try Catch Throw Finally
- Tags in Script
- Single Line Comment
- Multi Line Comment
- Struct Literal
- Array Literal
- Switch
If
If/else
If/else if/else
For Loop
For IN Loop Array
For IN loop struct
For IN loop Query
For IN loop List
The for in construct works with any List that is comma delimited. To change a list to comma delimited, use the 'listChangeDelims()' function.
Array Loop
Usefull for maintaining a reference to the index and the array element
While Loop
Closure
Implements a closure, which passing this function around keeps a reference to the scopes from where it was created
User Defined Function
User defined functions can be called from anywhere within the script but when they are passed around they do not contain a reference to where they were created