Assert

Description

Tests a boolean condition. If the condition evaluates to false, reports an error with the specified message.

Signature

action/assert

Required Parameters

condition

Condition expression

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.

stop_on_failure

Default:NO

If YES, the experiment will automatically stop if the assertion fails