exitWith: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|2.00|= Game version | |||
____________________________________________________________________________________________ | |||
| If the result of condition is [[true]], code is evaluated, and current block with result of code |= Description | |||
____________________________________________________________________________________________ | |||
''' | | if '''exitWith''' code |= Syntax | ||
|p1= if [[If Type]] |= Parameter 1 | |||
|p2= code [[Code]] |= Parameter 2 | |||
[[Anything]] | | [[Anything]] |= Return value | ||
____________________________________________________________________________________________ | |||
|x1= <pre>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)</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|EXITWITH]] | |||
[[Category:Scripting Commands ArmA|EXITWITH]] | |||
Revision as of 10:12, 2 August 2006
Description
- Description:
- If the result of condition is true, code is evaluated, and current block with result of code
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
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)
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