IsGreaterThan
Checks if one number(float) as bigger than the other(float) Returns yes: if first > second Returns no: if first <= second Returns exception if one of the inputs is not a number
javascript · Common Scripts
Source
first = parseFloat(args.first); if (isNaN(first)) { throw 'first is not valid: '+args.first; } second = parseFloat(args.second); if (isNaN(second)) { throw 'second is not valid: '+args.second; } if (first > second) { return 'yes'; } else { return 'no'; }
README
Checks if one number (float) is bigger than the other (float).
Returns yes: if the first > second.
Returns no: if first <= second.
Returns an exception if one of the inputs is not a number.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | Utility, Condition |
Inputs
| Argument Name | Description |
|---|---|
| first | The first argument to compare. |
| second | The second argument to compare. |
Outputs
| Path | Description | Type |
|---|---|---|
| yes | Returns yes if first > second. | Unknown |
| no | Returns no if first <= second. | Unknown |