Test a boolean value, and if false, display an error message and halt script execution.
void assert <bool:Condition> <string:Message>
Name | Type | Comment |
---|---|---|
Condition | bool | The boolean value to be tested. |
Message | string | The string of text to be displayed if Condition is false. |
None.
// create an integer new int "i" // set it to 9 set i 9 // and assert if 'i' is not greater than 10 assert <zs:isgt i 10> "'i' must be greater than 10"
None.