Exists
Check if a given value exists in the context. Will return 'no' for empty empty arrays. To be used mostly with DQ and selectors.
javascript · Common Scripts
Details
| ID | Exists |
|---|---|
| Language | javascript |
| From Version | 5.0.0 |
| Tags | Utility Condition |
README
Checks if a given value exists in the context. The script will return “no” for an empty arrays. This script should be used mostly with DQ and selectors.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | Utility, Condition |
Inputs
| Argument Name | Description |
|---|---|
| value | The value to check if it exists. It can handle arrays as well. |
Outputs
| Path | Description | Type |
|---|---|---|
| True | Whether the given value exists in context. | Unknown |
| False | Whether the given value does not exist in context. | Unknown |
commonfields: id: Exists version: -1 name: Exists script: '' type: javascript tags: - Utility - Condition comment: Check if a given value exists in the context. Will return 'no' for empty empty arrays. To be used mostly with DQ and selectors. system: true enabled: true args: - name: value default: true description: The value to check if exists - can handle arrays as well isArray: true outputs: - contextPath: yes description: if given value exists in context - contextPath: no description: if given value does not exist in context scripttarget: 0 fromversion: 5.0.0