Booleans
Booleans in Internet Object
Last updated
Booleans in Internet Object
Last updated
Boolean values are represented using T
and F
. true
and false
. The true values can be represented using T
or true
keywords. The false values can be represented using F
or false
keywords.
Chars
Char Code
Detail
T
U+0054
The uppercase letter T
F
U+ 0046
The uppercase letter F
true
U+0074 U+0072 U+0075 U+0065
The keyword true
false
U+0078
The keyword false
It is recommended that the keywords T and F keywords are preferred while denoting true and false values respectively.
In the following example, isActive
is of boolean type and will accept only boolean values i.e T
, F
, true
, false
.