IsTrue
Check if a given value is true. Will return 'no' otherwise
- Type
- javascript
- Pack
- CommonScripts
Source
if (typeof args.value === 'string' || args.value instanceof String) {
if (args.value === 'true' || args.value === 'True') {
return 'yes';
}
return 'no';
}
var val = Boolean(args.value);
if (val) {
return 'yes';
}
return 'no';
README
Checks if a given value is true. Will return “no” otherwise.
Script Data
| Name |
Description |
| Script Type |
javascript |
| Tags |
Utility, Condition |
Inputs
| Argument Name |
Description |
| value |
The value to check if it exists. This can handle arrays as well. |
Outputs
| Path |
Description |
Type |
| True |
Whether the value is “True” (either it has an object or string True/true). |
Unknown |
| False |
Whether the value is “False” (either it has an object or string True/true). |
Unknown |