Category
General-Purpose Functions
Description
Require a condition to be true for the script to continue
Syntax
Assert(condition, text {optional})
Parameters
condition - formula specifying a condition
text - formula specifying text to display in the popup message
Notes
When the condition is true, the function does nothing.
When the condition is false, a pop-up message appears:
.png)
The default text shows the assertion that failed and which formula, strategy, symbol, date and time the formula was being evaluated for.
If the optional text parameter is provided that text is displayed in place of the above.
The script can either be continued (Yes) or stopped (No) after the pop-up is dismissed.
|