--- title: "STOPIF" slug: "stopif" updated: 2024-11-19T10:50:48Z published: 2024-11-19T10:50:48Z canonical: "docs.datajet.app/stopif" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # STOPIF 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](/v1/docs/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. | ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1732013106880.png) ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1732013135266.png) ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1732013227475.png) #### 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 ```json { "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. ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1732010158008.png) ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1732010246030.png) ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1732012849580.png) Caution!Evaluate Condition cannot detect bad conditions resulting from **missing objects**