assert_evaluate_assumption_.htm
Navigation: Templates > Template Language Reference > Complete Alpha Listing >====== #ASSERT (evaluate assumption) ![]() | ![]() ![]() ![]() |
#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'
assert_evaluate_assumption_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1