Module: ecereCOM
Type: Enumeration
Base Class: uint
Description
Boolean value (true or false) stored as a 32 bit unsigned integer
Enumeration Values
true
1
One of the only two values that a boolean can be set to.
false
0
One of the only two values that a boolean can be set to.
Usage
Used in the declaration section of code, which is before any statements.
Example
bool thisBool; // A stand alone declaration of a bool. bool a, b; // Declaring two bools at the same time. bool c = true, d = false; // Declaring two bools, and initializing them both at the same time.
Remarks
A bool type describes a boolean type variable and can only store a true or false value.