## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

### Logical Operators

Logical operators are a base for expressions and conditional statements. You can view all of the Blitz3D logical operators in Table 2.5. It lists all of the conditions that make the logical operators true and false.

Table 2.5. Logical Operator Truth Table
PQP AND QP OR QNOT P
00001
01011
11110
10010

The AND operator is true only if both its parameters are true; the OR operator is true if one or more of its parameters are true; and the NOT operator is true only if its parameter is false. On the next page is an example of the AND operator.

`;demo02-09.bb - Shows use of the And operator ;find out how old the user is age = Input\$("How old are you? ") ;find out if the user lives in america location = Input\$("Do you live in America? (1 ...`

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required