exitWith: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Reset ArmA ver)
m (+ category + closed code tag)
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[if]] (_x>5) [[exitWith]] {[[echo]] "_x is too big"; _x}<code>
|x1= <code>[[if]] (_x>5) [[exitWith]] {[[echo]] "_x is too big"; _x}</code>


When _x is greater then 5, outputs message and terminates code in current level with value of _x |= Example 1
When _x is greater then 5, outputs message and terminates code in current level with value of _x |= Example 1
Line 39: Line 39:
[[Category:Scripting Commands|EXITWITH]]
[[Category:Scripting Commands|EXITWITH]]
[[Category:Scripting Commands ArmA|EXITWITH]]
[[Category:Scripting Commands ArmA|EXITWITH]]
[[Category:Command Group: Program Flow|EXITWITH]]

Revision as of 12:11, 20 October 2006

-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
Groups:
Uncategorised

Syntax

Syntax:
if exitWith code
Parameters:
if 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:
See also needed

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