Action: Elseiflessthan(A, B)

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

elseiflessthan(A, B)

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

A

A may be a number or a variable.

B

B may be a number or a variable.

Example:

;@ iflessthan(X, 0)      ; If X is less than 0 then show "doll0.cel".
;@   map("doll0.cel")
;@ elseiflessthan(X, 20) ; Otherwise, if X is less than 20 show "doll0.cel".
;@   map("doll20.cel")
;@ endif()