Skip to main content

Equals

Check whether two values match

Each node takes two inputs to filter the queried items.

  • Equals - items qualify if both inputs match.

  • Not equals - items qualify if both inputs differ.

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 an Equals node and a Not equals node, each with two empty segments

Compatibility

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

NodeAccepted Value TypeNotes
AttributeAny except GeometryUse the Pathfinder to choose an attribute, on the queried item or a linked item
PropertyDesign code, Item IdNot compatible with Last edit date. Use the Pathfinder to choose one, on the queried item or a linked item
CountNumber
LengthNumber
Value nodesSame type, except GeometryIf the node holds multiple values: Equals matches any of them, Not equals matches none
Arithmetic nodesNumber
info

To compare Geometry values, see Geographic comparisons.

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.

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

Examples

Equals

Fetch all defects that are awaiting inspection.

In AQS terms:

Fetch items of the Defects interface where their Status attribute equals Awaiting Inspection.

To build this step-by-step, see Example 1 - Check an attribute.

An Equals node comparing the Status attribute to Awaiting Inspection
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", "attributes_defectsStatus"],
"collectionCode": "Live",
"dodiCode": "designInterfaces_defects"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": ["5c8bdfb58ae862230019dc1f"]
}
}
]
}
]
}

Not equals

Fetch all jobs that aren't completed.

In AQS terms:

Fetch items of the Jobs interface where their Status attribute does not equal Completed.

A Not equals node comparing the Status attribute to Completed
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_jobs"
},
"children": [
{
"type": "NotEquals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": ["5bc5bdd281d088d177342c76"]
}
}
]
}
]
}