exitWith
Jump to navigation
Jump to search
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