exitWith: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
<h2 style="color:#000066">'' | <h2 style="color:#000066">'''''if'' exitWith ''code'''''</h2> | ||
Line 22: | Line 22: | ||
'''Description:''' | '''Description:''' | ||
If the result of condition is ''' | If the result of condition is [[true]], '''code''' is evaluated, and current block with result of code | ||
'''Example''': | '''Example''': | ||
if (_x>5) '''exitWith''' {echo "_x is too big";_x} | 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) |
Revision as of 23:09, 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, code is evaluated, 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)