Lesson4 (6/22)

Using "And" and "Or" in Boolean Expressions

We can use "And" and "Or" operators to make more
complicated boolean expression.

In the last example we used the boolean
expression Password = "let me in".

This boolean expression is "True" if
the Password is "let me in", and "False"
If the Password is not.

How can we make a boolean expression
that will be "True" if the Password is
"let me in" or "sam sent me", and if the
Password is other than the two above, the
boolean expression will be "False"?

To create this boolean expression we will use the "Or" operator:

(Password = "let me in") Or (Password = "sam sent me")