Boolean Ops (GNU Radius Reference Manual)

Next: , Previous: , Up: Expressions [Contents][Index]


12.2.6.5 Boolean Operations

A boolean operation is a combination of comparison expressions. Boolean operations can only be used in conditional expressions.

This table lists all comparison operators in order from highest precedence to lowest.

not x
! x

True if x is false.

x and y

True if both x and y are true. The subexpression y is evaluated only if x is true.

x or y

True if at least one of x or y is true. The subexpression y is evaluated only if x is false.

AltStyle によって変換されたページ (->オリジナル) /