Scala Tutorial - Scala Boolean Type








The Boolean type is limited to the literal true or the literal false as illustrated in the following example.

Example

The following code creates a boolean type value variable.

val x = !false