Since v1.2.13
Available on all platforms
See also

Evaluates a boolean expression, continues the execution if it is true, stops otherwise and displays a message.

The ASSERTMSG function consumes a BOOLEAN parameter and a STRING parameter from the top of the stack. If the boolean is true, the execution of the WarpScript script continues, else it stops the execution by throwing an exception with a message displaying the STRING parameter.

ASSERTMSG is usually used in WarpScript unit tests.



true 'An error has occured' ASSERTMSG [ 1 2 3 4 5 6 ] SIZE 8 == 'Wrong array size' ASSERTMSG