LessThanPercentage
This Script is part of the Common Scripts Pack.#
Supported versions
Available on Cortex XSOAR, Cortex XSIAM, and Cortex XPANSE.
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 |