#ASSERT (evaluate assumption) 

Top  Previous  Next

 

#ASSERT( condition [, message ] )

#ASSERT

Evaluates assumptions to detect unexpected errors.

condition

An expression that should always evaluate as true.

message

A string constant containing the text to display if the condition is not true. If omitted, the text of the condition is displayed.

#ASSERT evaluates assumptions to detect unexpected errors. #ASSERT evaluates the condition expression and displays the message if the condition is not true. This allows you to test the veracity of any programming assumptions you are making at any point in your template code.

Example:

#ASSERT(%False)                    #!Displays '%False'

#ASSERT(%False, 'Message Text')    #!Displays 'Message Text'