exitWith: Difference between revisions
| mNo edit summary | Killswitch (talk | contribs)  m (Syntax description was missing the condition part.) | ||
| Line 10: | Line 10: | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | if '''exitWith''' code |= Syntax | | if condition '''exitWith''' code |= Syntax | ||
| |p1= if: [[If Type]] |= Parameter 1 | |p1= if: [[If Type]] |= Parameter 1 | ||
| |p2= code: [[Code]] |= Parameter  | |p2= condition: [[Boolean]] |= Parameter 2 | ||
| |p3= code: [[Code]] |= Parameter 3 | |||
| | [[Anything]] |= Return value | | [[Anything]] |= Return value | ||
| Line 24: | Line 26: | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |  | | [[else]], [[Control Structures]], [[then]] |= See also | ||
| }} | }} | ||
Revision as of 15:20, 23 March 2007
Description
- Description:
- If the result of condition is true, code is evaluated, and current block with result of code
- Groups:
- Uncategorised
Syntax
- Syntax:
- if condition exitWith code
- Parameters:
- if: If Type
- condition: Boolean
- 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
