exitWith

From Bohemia Interactive Community
Revision as of 05:00, 3 July 2006 by Hoz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


if exitWith code


Operand types:

if: If Type

code: Code

Type of returned value:

Anything

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