논리 연산자

논리 연산자는 조건을 연관시킵니다. 논리 연산자는 이러한 조건에서 리턴되는 부울 값에 대한 논리 연산을 수행합니다.

표 1. 논리 연산자
연산자 설명
<condition> and <condition> 두 조건이 모두 true인 경우에만 결과 표현식이 true인 방식으로 두 조건을 연관시킵니다.
if
   the category of the customer is Gold
   and the age of the customer is at least 60
then...
<condition> or <condition> 두 조건 중 하나 또는 둘 다가 true인 경우에 결과 표현식이 true인 방식으로 두 조건을 연관시킵니다.
if
   the category of the customer is Gold
   or the age of the customer is at least 60
then...