Table 7-3. Logical Operators (Table 7-3 Logical Operators)
example name result?/FONT>
$a and $b And True of both $a and $b are true.? /FONT>
$a or $b Or?/FONT> True if either $a or $b is true.?/FONT>
$a xor $b Or?/FONT> True if either $a or $b is true, but not both.?/FONT>
! $a Not?/FONT> True if $a is not true.?/FONT>
$a && $b And?/FONT> True of both $a and $b are true.?/FONT>
$a || $b Or?/FONT> True if either $a or $b is true.
Two different kinds of "and" and " The changes in the "or" operator are actually caused by the different priorities of the operations. (Refer to the following.)