LessThanPercentage
Checks if one percentage is less than another Returns less: if firstPercentage < secondPercentage Returns more: if firstPercentage >= secondPercentage Returns exception if one of the inputs is not a float
javascript · Common Scripts
Details
| ID | LessThanPercentage |
|---|---|
| Language | javascript |
| From Version | 5.0.0 |
| Tags | Utility Condition |
README
Checks if one percentage is less than another.
Returns less: if firstPercentage < secondPercentage.
Returns more: if firstPercentage >= secondPercentage.
Returns an exception if one of the inputs is not a float.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | Utility, Condition |
Inputs
| Argument Name | Description |
|---|---|
| firstPercentage | The first percentage. |
| secondPercentage | The second percentage. |
Outputs
| Path | Description | Type |
|---|---|---|
| less | Whether the firstPercentage is less than (<) the secondPercentage. | Unknown |
| more | Whether the firstPercentage greater than or equal to (>=) the secondPercentage. | Unknown |
commonfields: id: LessThanPercentage version: -1 name: LessThanPercentage script: '' type: javascript tags: - Utility - Condition comment: |- Checks if one percentage is less than another Returns less: if firstPercentage < secondPercentage Returns more: if firstPercentage >= secondPercentage Returns exception if one of the inputs is not a float enabled: true outputs: - contextPath: less description: if firstPercentage < secondPercentage - contextPath: more description: if firstPercentage >= secondPercentage args: - name: firstPercentage description: First percentage. required: true default: true - name: secondPercentage description: Second percentage. required: true scripttarget: 0 fromversion: 5.0.0 tests: - No tests (auto formatted)