User Tools

Site Tools


4rpl:commands:endcase

This is an old revision of the document!


Index
Flow Control

:!: Available in version 2.4.4 and later.

endcase

endcase

Description

Delimits each case statement that needs to be evaluated.

Examples

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

See Also

4rpl/commands/endcase.1661970983.txt.gz · Last modified: 2025/02/14 14:56 (external edit)