Flow control
The syntax below is from the LSL definitions.
| Construct | Syntax |
|---|---|
if / else | if (<condition>) { ... } else { ... } |
for | for (<initializer>; <condition>; <post-iteration-statement>) { ... } |
while | while (<condition>) { ... } |
do | do { ... } while (<condition>); |
jump | jump <label> |
return | return [<variable>]; “Leave current event or function.” |
state | state <target> “If the target state is not the same as the current one, change to the target state.” |