assert: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 35: Line 35:
[[Category:Scripting Commands|ASSERT]]
[[Category:Scripting Commands|ASSERT]]
[[Category:Scripting Commands ArmA|ASSERT]]
[[Category:Scripting Commands ArmA|ASSERT]]
[[Category:Command_Group:_Program_Flow]]

Revision as of 20:53, 9 August 2006

-wrong parameter ("Arma") defined!-2.00
Hover & click on the images for description

Description

Description:
Tests a condition and if the condition is false, halts the program.
Groups:
Uncategorised

Syntax

Syntax:
assert condition
Parameters:
condition: Boolean
Return Value:
Boolean

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

Notes

Bottom Section