User Tools

Site Tools


4rpl:commands:endswitch

Index
Flow Control

:!: Available in version 2.4.4 and later.

endswitch

endswitch

Description

Delimits (ends) the switch construct.

Examples

switch
    case(<-currentState 0 ==) 
        @HandleIdle
    endcase
 
    case(<-currentState 1 ==) 
        @HandleMove
    endcase
 
    case(<-currentState 2 ==) 
        @HandleFire
    endcase
endswitch

See Also

4rpl/commands/endswitch.txt · Last modified: 2024/03/30 17:05 by Up-Level