assert()
Abort with an error message if condition evaluates to false.
Signature
# Abort with an error message if `condition` evaluates to `false`
void assert(
bool condition, # Abort if this evaluates to `false`
str [message], # The error message to print
)
Arguments
The function assert() accepts the following positional arguments:
| Name | Type | Description | Tags |
|---|---|---|---|
condition |
bool |
Abort if this evaluates to |
|
message |
str |
The error message to print. |
[optional] |
The results of the search are