Boolean Literals

Boolean literals are boolean values written directly in the program text.

Values

The only two boolean values are yes and no.

Note

Many programming languages use the values true and false, but this is based on a misunderstanding of the concept of truth. Truth is the recognition of reality. It is a classiciation used for knowledge. Knowledge is classified as true if it recognizes the facts of reality, as false if it contradicts the facts of reality and as arbitrary if it is not about reality at all. This is very different from boolean values in boolean expressions.

Objective-C should be noted for using the more appropriate values yes and no.