LESS_THAN_EQUAL
LESS_THAN_EQUAL:
left: { arg1 } # required
right: { arg2 } # required
Description
The LESS_THAN_EQUAL
operation performs a numerical comparison to check if the left
argument is less than or equal to the right
argument. It returns a Boolean
value: true
if left
is less than or equal to 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 or equal to a number constant:
LESS_THAN_EQUAL:
left:
FIELD:
path: CA10__ruleCount__c
right:
NUMBER: 50This example checks if the value of the
CA10__ruleCount__c
field is less than or equal to the number constant50
. -
Using
LESS_THAN_EQUAL
withJSON_QUERY_NUMBER
:LESS_THAN_EQUAL:
left:
JSON_QUERY_NUMBER:
arg:
EXTRACT: "caJsonFrom__firewallRules__c"
expression: "length([? starts_with(name, 'AllowAllAzureServicesAndResourcesWithinAzureIps')])"
right:
NUMBER: 2This example checks if the size of the number extracted from JSON is less than or equal to
2
.
See more details in: