| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Complete Alpha Listing >====== #ASSERT (evaluate assumption) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[ application source generation control section .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ at insert code in an embed point .htm|{{btn_next_n.gif|Next page}}]] | | || **#ASSERT( **//condition //[, //message// ] **)** {{blk2blue.jpg|blk2blue.jpg}} | **#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'**