Yes/No node
Provide a true or false value
The Yes/No node represents a boolean value that can be true or false.
Usage
This node is an input, so you can add it to the segments of these comparison nodes:
Compatibility
This node fills one segment. The other must hold a Yes/No Attribute.
| Node | Accepted Value Type | Notes |
|---|---|---|
| Attribute | Yes/No | Use the Pathfinder to choose an attribute, on the queried item or a linked item |
Options
Select the node to access its options:
- Delete - remove the node from the segment.
- Parameter - select a compatible parameter to use as a placeholder. The value is provided when the query runs.
Otherwise, set the value directly:
- Value - enable for true, disable for false.
Example
Fetch all protected trees.
In AQS terms:
Fetch items of the Trees design where their Tree Protection Order attribute equals true.
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": "designs_trees"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_treesTreeProtectionOrder"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
}
]
}