This is an old revision of the document!
⇐ Index
⇐ Flow Control
Available in version 2.4.4 and later.
switch
Allow for multiple selection control in a single, more compact form that multiple if/else if/endif endif format. This is intended to improve clarity by reducing otherwise repetitive coding.
switch case(<-currentState 0 ==) @HandleIdle endcase case(<-currentState 1 ==) @HandleMove endcase case(<-currentState 2 ==) @HandleFire endcase endswitch