exitWith: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| If the result of condition is [[true]], code is evaluated, and current block with result of code |= Description
| If the result of condition is [[true]], code is evaluated, and current block with result of code. It only exits the current scope. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 23:44, 15 June 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
If the result of condition is true, code is evaluated, and current block with result of code. It only exits the current scope.
Groups:
Uncategorised

Syntax

Syntax:
ifCommand exitWith code
Parameters:
ifCommand: If Type
code: Code
Return Value:
Anything

Examples

Example 1:
if (_x>5) exitWith {echo "_x is too big"; _x} When _x is greater then 5, outputs message and terminates code in current level with value of _x

Additional Information

See also:
elseControl Structuresthen

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section