ASSERT
debugEvaluates a boolean expression, continues the execution if it is true, stops otherwise.
The ASSERT
function consumes a BOOLEAN 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.
ASSERT
is usually used in WarpScript unit tests.