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.
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.
| Node | Accepted Value Type | Notes |
|---|---|---|
| Attribute | Any except Geometry | Use the Pathfinder to choose an attribute, on the queried item or a linked item |
| Property | Design code, Item Id | Not compatible with Last edit date. Use the Pathfinder to choose one, on the queried item or a linked item |
| Count | Number | |
| Length | Number | |
| Value nodes | Same type, except Geometry | If the node holds multiple values: Equals matches any of them, Not equals matches none |
| Arithmetic nodes | Number |
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.
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.
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"]
}
}
]
}
]
}