Logical values

A logical value is a single character (1 or 0) enclosed in apostrophes.

Logical values are often used as a switch to represent a condition such as on or off, yes or no, and true or false. When used in expressions, a logical value can be optionally preceded by *NOT or not symbol. The following are examples of logical values:

Table 1. Logical values
Constant Value Meaning
'0' 0 Off, no, or false
'1' 1 On, yes, or true