SHIP:Data Types:Boolean

From Serious Documentation
Jump to: navigation, search

See Also


Booleans SHIP are 1-bit values.

Data Type Description
Boolean A true or false value.

When Boolean values are assigned from other numeric data types (e.g. Byte, Short, Integer, Float), a zero value is cast to false, and a non-zero value is cast to true.

Conversely, when a Boolean value is assigned to another numeric data type (e.g. Byte, Short, Integer, Float), a false value is cast to zero, and a true value is cast to 1 (or 1.0f).