web shop for only 500 euro web site fo only 200 euro


Web-shop for only 500 euro during 3 days, +38 068 801 14 71 (Kiev, Ukraine)

Logical Operators

Table 10-5. Logical Operators

ExampleNameResult
$a and $bAndTrue if both $a and $b are true.
$a or $bOrTrue if either $a or $b is true.
$a xor $bXorTrue if either $a or $b is true, but not both.
! $aNotTrue if $a is not true.
$a && $bAndTrue if both $a and $b are true.
$a || $bOrTrue if either $a or $b is true.

The reason for the two different variations of "and" and "or" operators is that they operate at different precedences. (See Operator Precedence.)


 
web10.net.ua