Skip to main content

LessThan

How to use the LessThan operator

The LessThan operator returns the items for which the left operand is less than the right operand.

Allowed Children

Primitive, Reference, Arithmetical and Value Transforms nodes

Requirements

Must have 2 children of the same value type, the first child is the value to check that is less than the second child

Return Type

Item Ids Set

Example: Number Less Than Query
{
"type": "LessThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobsSomeNumber"
}
},
{
"type": "Number",
"properties": {
"value": 12
}
}
]
}
Example: Date Less Than Query

Find trees installed before 1st Jan 2019.

{
"type": "Query",
"properties": {
"dodiCode": "designInterfaces_trees",
"attributes": ["attributes_treesInstalledDate"]
},
"children": [
{
"type": "LessThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_treesInstalledDate"
}
},
{
"type": "Date",
"value": ["2019-01-01"]
}
]
}
]
}