AssertTrue
From ApCoCoAWiki
AssertTrue
Checks if a condition is true.
Syntax
$apcocoa/ts/assert.AssertTrue(Condition: BOOL, ErrMsg: STRING)
Description
This function checks if the boolean 'Condition' is true. If not it throws an error and prints the error message 'ErrMsg'.
@param Condition: Boolean value of a condition
@param ErrMsg: Error message
Example
$apcocoa/ts/assert.AssertTrue(x=x, "x does not equal x.");