Action: Endif()

Related Actions: ifequal, ifnotequal, ifgreaterthan, iflessthan, else, elseifequal, elseifnotequal, elseifgreaterthan, elseiflessthan
See also: FKiSS, Events, Actions

endif()

First defined in: FKiSS3
The endif forms the end of a structured if-else-endif block.
When endif is processed, processing of additional actions commands no longer depend on any previous if-else conditionals.

Example:

;@ ifequal(X, 1)     ; If X equals 1 then show "doll.cel".
;@   map("doll.cel")
;@ endif()           ; End of conditional block.
;@ sound("ding.wav") ; This sound is always played even if doll.cel is not shown.