Skip to main content

GreaterThan

How to use the GreaterThan operator​

The GreaterThan operator returns the items for which the left operand is greater 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 greater than the second child

Return Type​

Item Ids Set

Example: Seasonal Greater Than Query

Find items greater than a seasonal date.

{
"type": "Query",
"properties": {
"dodiCode": "designs_exampleJobs",
"attributes": ["all"]
},
"children": [
{
"type": "GreaterThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobsCompletedDate"
}
},
{
"type": "Seasonal",
"value": ["14:10:38"]
}
]
}
]
}
Example: Date Greater Than Query

Find trees installed after 1st Jan 2019.

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