assert

Checks a condition while the script runs under its tests (a failed assert fails the test with this message, the bar and the line). Does nothing in a normal run, so it can stay in a script.

assert(condition: bool, message: string = na)

Parameters

Example

assert(high >= low, "high below low")