exitWith: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
<h2 style="color:#000066">''if | <h2 style="color:#000066">''if'' '''exitWith ''code'''''</h2> | ||
Revision as of 12:14, 3 July 2006
if exitWith code
Operand types:
if: If Type
code: Code
Type of returned value:
Compatibility:
Version 2.00 required.
Description:
If the result of condition is true, evaluates code, and current block with result of code
Example:
if (_x>5) exitWith {echo "_x is too big";_x} , result is [when _x is greater then 5, outputs message and terminates code in current level with value of _x