assert: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 21: Line 21:


Tests a condition and if the condition is false, halts the program.
Tests a condition and if the condition is false, halts the program.


'''Example''':
'''Example''':
      
      
'''assert''' (_x>0)
'''assert''' (_x>0)

Revision as of 16:51, 6 July 2006


assert condition


Operand types:

condition: Boolean

Type of returned value:

Boolean

Compatibility:

Version 2.00 required.

Description:

Tests a condition and if the condition is false, halts the program.


Example:

assert (_x>0)