assert: 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 | |||
____________________________________________________________________________________________ | |||
| Tests a condition and if the condition is false, halts the program. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''assert''' condition |= Syntax | ||
|p1= condition: [[Boolean]] |= Parameter 1 | |||
| [[Boolean]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>assert (_x>0)</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|ASSERT]] | |||
[[Category:Scripting Commands ArmA|ASSERT]] | |||
Revision as of 22:03, 1 August 2006
Description
- Description:
- Tests a condition and if the condition is false, halts the program.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
assert (_x>0)
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