Skip to main content

Less Than / Greater Than

Check whether one value exceeds another

Each node takes two inputs to filter the queried items.

  • Less than - items qualify if the first input is smaller than the second.

  • Greater than - items qualify if the first input exceeds the second.

Usage

These nodes are conditions, so you can add them directly after the root node or a logical node.

A root node connected to an Any node, which branches to a Less than node and a Greater than node, each with two empty segments

Compatibility

Both segments must hold the same value type (a number, date or time). One reads from the queried items, the other provides the value to compare against. Attribute and Property can't be paired.

NodeAccepted Value TypeNotes
AttributeNumber, Date, Date Time, Time, SeasonalUse the Pathfinder to choose one, on the queried item or a linked item
PropertyDate TimeOnly the Last edit date property is compatible. Use the Pathfinder to choose it, on the queried item or a linked item
CountNumber
NumberNumber
Date / Date Time / Seasonal / TimeDate, Date Time, Seasonal, TimeSeasonal ignores the year, Time ignores the date
Relative Date / Relative Date TimeDate, Date TimeDerived each time the query runs
Value From Item AttributeSame as its referenced attributeFrom one or more items of any design/interface
LengthNumber
Arithmetic nodesNumber

Options

Select the node to access its options:

  • Swap - use another comparison node. If any segments are populated, only compatible nodes are listed.

  • Delete - remove the node from the query branch.

  • Inclusive - enable this to make the condition "or equal to".

  • Link negated - invert the condition. Different from swapping to the opposite node. Only available when a segment references a linked design/interface.

Examples

Less than

Fetch all inspections completed before 2026.

In AQS terms:

Fetch items of the Inspections interface where their Completion Time attribute is less than 1 January 2026.

A Less than node comparing the Completion Time attribute to 1 January 2026 00:00:00
See JSON code

This code may reference designs, interfaces, attributes or items that don't exist in your company project.

{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_inspections"
},
"children": [
{
"type": "LessThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksCompletionTime"
}
},
{
"type": "DateTime",
"properties": {
"value": ["2026-01-01T00:00:00.000Z"]
}
}
]
}
]
}

Greater than

Fetch all jobs with over 4 job work items.

In AQS terms:

Fetch items of the Jobs interface where the count of their Job Work Items attribute is greater than 4.

A Greater than node comparing a count of Job Work Items to 4
See JSON code

This code may reference designs, interfaces, attributes or items that don't exist in your company project.

{
"type": "Query",
"properties": {
"attributes": ["attributes_itemsTitle", "attributes_itemsSubtitle"],
"collectionCode": "Live",
"dodiCode": "designInterfaces_jobs"
},
"children": [
{
"type": "GreaterThan",
"children": [
{
"type": "Count",
"properties": {
"groupBy": "attributes_jobsJobWorkItems"
}
},
{
"type": "Number",
"properties": {
"value": [4]
}
}
]
}
]
}