Number node
Provide a fixed number
The Number node represents one or more numbers, which can be:
-
whole or decimal, e.g. 42, 3.1415
-
positive or negative, e.g. 8, -690.22
Usage
This node is an input, so you can add it to the segments of:
-
these comparison nodes:
-
all Arithmetic nodes
Compatibility
This node fills one segment. The other must produce a number from the queried items.
| Node | Accepted Value Type | Notes |
|---|---|---|
| Attribute | Number | Use the Pathfinder to choose an attribute, on the queried item or a linked item |
| Count | Number | |
| Length | Number | |
| Arithmetic nodes | Number |
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.
Alternatively, set the value directly:
-
Value - enter a number.
-
Add - add another Value to the node. Select to remove. Multiple values only apply to Equals / Not equals.
Example
Fetch all street lights with a column over 8 metres tall.
In AQS terms:
Fetch items of the Street Lights design where their Column Height attribute is greater than 8.
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_streetLights"
},
"children": [
{
"type": "GreaterThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_streetLightsColumnHeight_5e1db714ca31500ad87c5d18"
}
},
{
"type": "Number",
"properties": {
"value": [8]
}
}
]
}
]
}