then: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Correction to the syntax of one of the examples) |
||
Line 28: | Line 28: | ||
''' | '''Examples:''' | ||
[[if]] (a>b) '''then''' {c=1} [[else]] {c=2}; [[if]] (a>b) '''then''' | [[if]] (a>b) '''then''' {c=1} [[else]] {c=2}; [[if]] (a>b) '''then''' {c=1;c=2} |
Revision as of 20:12, 1 June 2006
if then else
Operand types:
if: If Type
else: Array
Type of returned value:
Compatibility:
Added in version 1.85
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).
Examples: