exitWith: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
This command work in levels of your Sqf Script, if you put inside of one While this command terminate the While but not the script. | This command work in levels of your Sqf Script, if you put inside of one While this command terminate the While but not the script. | ||
--[[User:Praxtor|Praxtor]] 20:06, 17 August 2007 (CEST) | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 19:06, 17 August 2007
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
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
-
This command work in levels of your Sqf Script, if you put inside of one While this command terminate the While but not the script.
--Praxtor 20:06, 17 August 2007 (CEST)