logical operator

An operator such as AND, OR or NOT that combines or reverses true-or-false conditions.

In more detail

AND is true only if both sides are true, OR if either is, and NOT reverses a condition. NOT binds most tightly, then AND, then OR, so a OR b AND c means a OR (b AND c); add brackets to say what you mean. Many languages write them as the words and, or and not, or as symbols such as &&, || and !, and stop evaluating as soon as the answer is known.

Examples

Rego ANDs lines in one body and ORs rules with the same name
In a NetworkPolicy, two selectors in one peer are AND; two peers are OR
0 < x and x < 10
Detection rules are built from them.

Related terms

Taught in

References

Certification courses