AreValuesEqual
Check whether the values provided in arguments are equal. If either of the arguments are missing, no is returned.
javascript · Common Scripts
Source
if (args.left === undefined || args.right === undefined) { return 'no'; } var left = (typeof args.left === 'string') ? args.left : args.left + ''; var right = (typeof args.right === 'string') ? args.right : args.right + ''; var answer = 'no'; if (left === right) { answer = 'yes'; } setContext('AreValuesEqual', answer) return answer;
README
Checks whether the values provided in the arguments are equal. If either of the arguments are missing, “no” is returned.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | Utility, Condition |
Inputs
| Argument Name | Description |
|---|---|
| left | The first value for comparison. |
| right | The second value for comparison. |
Outputs
| Path | Description | Type |
|---|---|---|
| True | When the left is equal to right. | Unknown |
| False | When the left is not equal to right. | Unknown |