assert
Algorand TypeScript / index / assert
assert(
condition,message?):asserts condition
Defined in: util.ts:19
Asserts that condition is truthy, otherwise error and halt execution.
Parameters
Section titled “Parameters”condition
Section titled “condition”unknown
An expression that can be evaluated as truthy of falsy
message?
Section titled “message?”string
The message to show if condition is falsy and an error is raised.
Returns
Section titled “Returns”asserts condition