Actions: Control Structures
Break
Break out of the current control structure and continue.
Case
Create a case to use within a switch control structure.
Argument | Description |
---|---|
Value | The value to set variable to (input or another variable) |
Catch
Defines the block which runs when a try structure encounters an error.
Argument | Description |
---|---|
Variable | The variable to store the error, if one occurs |
Else
Adds a block for ‘all other cases’ of a control structure.
Else If Property
Additional condition to check the value of a property.
Argument | Description |
---|---|
Element | The element to have its property compared. |
Property | The attribute that is to be compared. |
Operator | The comparison operator to use |
Value | The value to compare to |
Else If Variable
Add an additional if condition to an existing control structure block, referencing a variable.
Argument | Description |
---|---|
ThisValue | The value to set variable to (input or another variable) |
ThisVariable | The variable to set the value of. |
Operator | The comparison operator for comparing values in the table against the input value. |
End If
Marks the end of a IF/ELSEIF/ELSE structure.
End Repeat
Marks the end of a repeat structure.
End Switch
Marks the end of a switch structure.
End Try
Ends a try block.
Exit Repeat
Exits the repeat current repeat loop.
Finally
Runs all lines below it, inside a try structure, whether there is an error or not.
If Property
Creates the first condition referencing a property.
Argument | Description |
---|---|
Element | The element to have its property compared. |
Property | The attribute that is to be compared. |
Operator | The comparison operator to use |
Value | The Value to compare to |
If Variable
Creates the first line of an if condition referencing a variable.
Argument | Description |
---|---|
ThisValue | The value to set variable to (input or another variable) |
ThisVariable | The variable to set the value of. |
Operator | The comparison operator for comparing values in the table against the input value. |
Next Repeat
Skips the rest of the repeat control structure and returns to the top for the next repeat.
Repeat x Number of Times
Repeat a code block x number of times.
Argument | Description |
---|---|
Number | Specify the number of times the repeat block will run |
Switch Property
Begins a switch block where the value of a property is compared.
Argument | Description |
---|---|
Element | The element to have its property compared. |
Property | The attribute that is to be compared. |
Switch Variable
Begins a switch block where the value of a variable is compared.
Argument | Description |
---|---|
Variable | The variable to use in the SWITCH control structure |
Try
Runs the code within its block, and returns and runs the catch block if an execution error occurs.
This chapter was last updated on Wed 8 Feb 2023 14:24:05 GMT