The Boolean data type can only have two values. They are the literals
true
and
false
representing logical values. They are used in conditions. The THEN branch is executed when the expression evaluates to the Boolean value true, the ELSE branch when the expression evaluates to the Boolean value false.
JScript .NET automatically converts true and false into 1 and 0 when they are used in numerical expressions. When numbers are used in Boolean expressions, 0 is interpreted as false and any other number as true.