Next: enum, Previous: void, Up: Types and Expressions [Contents][Index]
boolDezyne has a builtin boolean type bool with constants
false and true.
Available boolean operators are:
!bLogical negation of a boolean expression,
b1 && b2Logical and of two boolean expressions,
b1 || b2Logical or of two boolean expressions,
b1 == b2Equality of two boolean expressions,
b1 != b2Inequality of two boolean expressions,
where b, b1, and b2 are boolean expressions.
It is used to define boolean events
in bool test ();
boolean variables
bool idle = true;
and parameters and functions
bool negate (bool input)
{
return !input;
}