Log in

Boolean Data Type

The boolean data type represents true/false or yes/no values. The single character 'Y' is used for true/yes, and the single character 'N' is used for false/no.

boolean could be considered as a subtype of the char datatype, since it follows the same rules, only with additional restrictions on the character. However, it is considered as a primitive in its own right.

Examples

ExampleValidNotes
Y
N
yShould be uppercase
nShould be uppercase
trueMore than one character
tNot Y or N