Skip to main content
Version: 26.3

the assertionBehavior

Global Property

(Added in SenseTalk 1.72)

The assertionBehavior global property sets the behavior of the assert command when assert evaluates a statement as false, controlling the behavior for these failed assertions. It may be set to one of:

  • Exception: an assertionFailed exception is thrown, with a nice error message
  • Warning: a nice warning message is logged
  • Error: an error is logged, script continues
  • Pause: a warning is logged, the system beeps and the script pauses in the debugger

The initial default value of the assertionBehavior is "Exception".

If the English-like version of the assert command is used and includes one of the words warning, error, exception, or pause, that will take precedence over the setting of the assertionBehavior.

Further Reading

Resources in our other reference manuals:

Related terms in the SenseTalk Dictionary: