Logical operators
Not
The logic-not
action performs logical negation of an action, returning false
(for example) if the action evaluates to true
.
Name | Type | Required | Action | Info |
---|---|---|---|---|
right |
action | Yes | Yes | Negation of the action. |
Example
{"logic-not" : {
"right" : {"check-gt" : {
"left" : { "counter-value" : { "counter" : "Session-Id" } },
"right" : 3
}
}
}
}
And
The logic-and
performs a logical comparison of two items, returning true
(for example) if both of the actions evaluate to true
.
Name | Type | Required | Action | Info |
---|---|---|---|---|
right |
action | Yes | Yes | Right member of the logical operation. Must evaluate to a boolean. |
left |
action | Yes | Yes | Left member of the logical operation. Must evaluate to a boolean. |
Example
{"logic-and" : {
"left" : {"check-gt" : {
"left" : { "counter-value" : {"counter":"User-Id"}},
"right" : 5
}
},
"right" : {"check-gt" : {
"left" : { "counter-value" : {"counter":"Session-Id"}},
"right" : 3
}
}
}
}
Or
The logic-or
action performs a logical Or-comparison between the left
and right
items.
Name | Type | Required | Action | Info |
---|---|---|---|---|
right |
action | Yes | Yes | Right member of the logical operation. Must evaluate to a boolean. |
left |
action | Yes | Yes | Left member of the logical operation. Must evaluate to a boolean. |
Example
{"logic-or" : {
"left" : {"check-gt" : {
"left" : { "counter-value" : { "counter" : "User-Id" } },
"right" : 5
}
},
"right" : {"check-gt" : {
"left" : { "counter-value" : { "counter" : "Session-Id" } },
"right" : 3
}
}
}
}