Skip to main content

Yes/No node

Description

The Yes/No node represents a boolean value that can be true or false.

Usage

The Yes/No node is an input, so it can be added to the segments of comparison nodes.

alt text

It can be:

Configuration

alt text
  • Parameter - select a compatible parameter to use as a placeholder value (if any have been defined in the query).
  • Value - if enabled, the node represents a true value. If disabled, the node represents a false value.

Example

Fetch all protected trees

In full detail:

Fetch items of the Trees design where their Tree Protection Order attribute equals true

alt text
See JSON code

This code may reference designs, interfaces, attributes or items that don't exist in your Alloy database.

{
"type": "Join",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_trees"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_treesTreeProtectionOrder"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
}
]
}