Action: Elseifgreaterthan(A, B)

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

elseifgreaterthan(A, B)

First defined in: FKiSS4
The elseifgreaterthan forms the middle of a structured if-elseif-endif block.
For elseifgreaterthan, the conditional block is executed if all previous conditional blocks were false and A is greater 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:

;@ ifgreaterthan(X, 20)      ; If X is greater than 20 then show "doll20.cel".
;@   map("doll20.cel")
;@ elseifgreaterthan(X, 0)   ; Otherwise, if X is greater than 0 show "doll0.cel".
;@   map("doll0.cel")
;@ endif()