LESS_THAN
LESS_THAN:
left: { arg1 } # required
right: { arg2 } # required
Description
The LESS_THAN
operation performs a numerical comparison to check if the left
argument is strictly less than the right
argument. It returns a Boolean
value: true
if left
is less than right
, and false
otherwise.
Both arguments must be of Number
type.
Parameters
left
(Operation<Number
>, required):right
(Operation<Number
>, required):- Specifies the second argument for comparison.
- Must be of the same type as the
left
argument.
Return Type
Examples
-
Checking if a number field is less than a number constant:
LESS_THAN:
left:
FIELD:
path: CA10__cpuCount__c
right:
NUMBER: 4This example checks if the value of the
CA10__cpuCount__c
field is less than the number constant4
. -
Using
LESS_THAN
withJSON_QUERY_NUMBER
:LESS_THAN:
left:
JSON_QUERY_NUMBER:
arg:
JSON_FROM:
arg:
EXTRACT: "CA10__securityCenterAutoProvisioning__c"
expression: "length([? name == 'default' && autoProvision == 'Off'])"
right:
NUMBER: 1This example checks if the number extracted from JSON is less than
1
.
See more details in: