kcl →
assert
Check a value at runtime, and raise an error if the argument provided
is false.
assert(data: bool, message: string) -> ()
Examples
const myVar = true
assert(myVar, "should always be true")
Arguments
data
:bool
(REQUIRED)message
:string
(REQUIRED)
Returns
()