Skip to main content

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:

An Equals node with two empty segments

Compatibility

This node fills one segment. The other must hold a Yes/No Attribute.

NodeAccepted Value TypeNotes
AttributeYes/NoUse 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.

An Equals node comparing the Tree Protection Order attribute to Yes
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
}
}
]
}
]
}