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