Checks if two conditions both evaluate to true.
The operators &
and and
can both be used and are exaclty the same.
Syntax
Condition1 & Condition2
Returns
A boolean value, depending on the check
- if
Condition1
evaluates totrue
ANDCondition2
evaluates totrue
, thentrue
is returned. - all other avaluations result in
false
Examples
(6=6) & ("Hello world" = "Hello world") /* results in true */
(6=6) & ("Hello world" = "Hello you") /* results in false */