Skip to main content

Logical Operators

How to use logical operators

The following are logical operators that are supported in AQS, they evaluate to a set of item ids matching the underlying conditions.

Or

Find items that fulfil any of the underlying conditions.

Allowed Children

All Logical operators, All Conditional operators

Requirements

None

Return Type

Item Ids Set

Example:
{
"type": "Or",
"children": [
{
"type": "StartsWith",
"properties": { ... },
"children": [
{
"type": "Attribute",
...
},
{
"type": "String",
...
}
]
},
{
"type": "GreaterThan",
"properties": { ... },
"children": [
{
"type": "Attribute",
...
},
{
"type": "Number",
...
}
]
}
]
}

And

Find items that fulfil all of the underlying conditions.

Allowed Children

All Logical operators, All Conditional operators

Requirements

None

Return Type

Item Ids Set

Example:
{
"type": "And",
"children": [
{
"type": "StartsWith",
"properties": { ... },
"children": [
{
"type": "Attribute",
...
},
{
"type": "String",
...
}
]
},
{
"type": "GreaterThan",
"properties": { ... },
"children": [
{
"type": "Attribute",
...
},
{
"type": "Number",
...
}
]
}
]
}