STOPIF
  • 1 Minute to read
  • Dark
    Light
  • PDF

STOPIF

  • Dark
    Light
  • PDF

Article summary

Stops script execution if the Condition evaluates to true.

KeyValueDescription
methodSTOPIFStops script execution if Condition evaluates to true
descriptionAny stringText that is displayed in Script Editor Detail Column
projectProject NameProject that method applies to
condition...The Condition to evaluate. See IF ELSE ENDIF for more details of how to construct valid IF Conditions
noDatestrue/falsev6.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?

What's Next