LessThan
How to use conditional operator LessThan
LessThan
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 the tress before 1st Jan 1900.
{
"type": "Query",
"properties": {
"dodiCode": "designInterfaces_trees",
"attributes": ["attributes_treesInstalledDate"]
},
"children": [
{
"type": "LessThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_treesInstalledDate"
}
},
{
"type": "Date",
"value": ["1900-01-01"]
}
]
}
]
}