then

From Bohemia Interactive Community
Revision as of 17:40, 15 April 2006 by Hoz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

if then else


Operand types:

if: If Type

else: Array

Type of returned value:

Anything

Description:

First or second element of array is executed depending on result of if condition. Result of the expression executed is returned as a result (result may be Nothing).

Example:

if (a>b) then {c=1} else {c=2}; if (a>b) then [{c=1},{c=2}]