Action: Elseifequal(A, B)

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

elseifequal(A, B)

First defined in: FKiSS4
The elseifequal forms the middle of a structured if-elseif-endif block.
For elseifequal, the conditional block is executed if all previous conditional blocks were false and A is equal to B (i.e. A == B).

A

A may be a number or a variable.

B

B may be a number or a variable.

Example:

;@ ifequal(X, 1)       ; If X equals 1 then show "doll.cel".
;@   map("doll.cel")
;@ elseifequal(X, 2)   ; Otherwise, if X equals 2 then show "doll2.cel".
;@   map("doll2.cel")
;@ endif()