Assert¶
Description¶
Tests a boolean condition. If the condition evaluates to false, reports an error with the specified message.
Signature¶
action/assert
Optional Parameters¶
message¶
Error message to report if the assertion fails. If omitted, a default message containing the condition expression is used.
To include the values of variables or arbitrary expressions in the
message, you can use variable and expression interpolation (e.g. x = $x, y = ${y}, x+y = $(x+y)
).
Placement¶
Allowed at top level: |
No |
---|---|
Allowed parent: |
Block, Conditionally Execute Actions (if), List, Protocol, Render Actions, Repeat Actions (while), Schedule Actions, Task System State, Trial, Unconditionally Execute Actions (else), Variable |