The boolean
data type represents a single truth value, which may be either true
or false
.
The boolean
value true
can convert to the string
"true"
while the boolean
value false
can convert to the string
"false"
. Conversely, the string
s "true"
and "false"
can convert to the boolean
values true
and false
respectively. No other value can be converted to boolean
.