Not Equals node
Description
The Not equals node takes two inputs. It filters the items in your query by checking if the first input is not equal to the second input.
Usage
The Not equals node is a condition, so it can be added to the query branch directly after the root node or a logical node.
It can be populated with these nodes:
- Count
- Length
- all the Reference nodes
- all the Value nodes
- all the Arithmetic nodes
Configuration
-
Swap - change the comparison node. If any segments hold values, they'll remain but the node types offered will be limited.
-
Delete - remove the node from the query.
-
Link negated - enable this to invert the condition imposed by the node. Items must now fail the condition to be included in the query results.
Note
Example
Fetch all jobs that aren't completed
In full detail:
Fetch items of the Jobs interface where their Status attribute does not equal Completed
See JSON code
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_jobs"
},
"children": [
{
"type": "NotEquals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": ["5bc5bdd281d088d177342c76"]
}
}
]
}
]
}