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. You can include variable
values in the message by placing a $
before each variable’s name
(e.g. x = $x, y = $y
).
If omitted, a default message containing the condition expression is used.
Placement¶
Allowed at top level: | No |
---|---|
Allowed parent: | Block, Conditionally Execute Actions (if), List, Protocol, Repeat Actions (while), Schedule Actions, Task System State, Trial, Unconditionally Execute Actions (else), Variable |