ASSERTMSG
debugEvaluates 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.