exitWith: Difference between revisions
| m (there are only the 2 parameter types, first If type conditional, second the code to execute) | mNo edit summary | ||
| Line 10: | Line 10: | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |  | | ifCommand '''exitWith''' code |= Syntax | ||
| |p1=  | |p1= ifCommand: [[If Type]] |= Parameter 1 | ||
| |p2= code: [[Code]] |= Parameter 2 | |p2= code: [[Code]] |= Parameter 2 | ||
Revision as of 16:52, 24 March 2007
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}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
