exitWith

From Bohemia Interactive Community
Revision as of 00:09, 4 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


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, 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)