And
The and
condition tests whether one or more sub-conditions are all true. This joins the sub-conditions together in a logical AND.
JSON Schema
{
"title": "And",
"properties": {
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"config": {
"type": "object"
}
}
}
}
}
}
Example #1
Suppose you wanted a condition to evaluate if:
- a node has
published
set totrue
AND - a node's type is
my:article
The condition could be written like this:
{
"type": "and",
"config": {
"conditions": [{
"type": "propertyEquals",
"config": {
"property": "published",
"value": true
}
}, {
"type": "typeEquals",
"config": {
"type": "my:article"
}
}]
}
}