Logical operators

Logical operators associate conditions. They perform logical operations on the Boolean values returned by these conditions.
Table 1. Logical operators
Syntax Description Example
<condition> and <condition>
Associates two conditions such that the resulting expression is only true if both conditions are true.
if the category of customer is Gold and the age of customer is at least 60
<condition> or <condition>
Associates two conditions such that the resulting expression is true if either (or both) conditions are true.
if the category of customer is Gold or the age of customer is at least 60