STOPIF
- 1 Minute to read
- Print
- DarkLight
- PDF
STOPIF
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Stops script execution if the Condition evaluates to true.
Key | Value | Description |
---|---|---|
method | STOPIF | Stops script execution if Condition evaluates to true |
description | Any string | Text that is displayed in Script Editor Detail Column |
project | Project Name | Project that method applies to |
condition | ... | The Condition to evaluate. See IF ELSE ENDIF for more details of how to construct valid IF Conditions |
noDates | true/false | v6.11.7 Optional. Default= false If true, will not evaluate the condition as a date. |
nonNumeric | true/false | v6.11.7 Optional. Default= false If true, will not evaluate the condition as a date. |
Bad Condition
STOPIF will return "Bad Condition" in the following situations:
- if "condition" references an object that doesn't exist
- if "condition" is badly formed
{
"method": "STOPIF",
"condition": "count([CheckData.DS-Join1],1) != 104981",
"description": "expected join records",
"project": "MyProject"
}
Evaluating Conditions
Use "Evaluate Condition?" to see result returned from condition.
Caution!
Evaluate Condition cannot detect bad conditions resulting from missing objects
Was this article helpful?