TRUE and FALSE values of bool type

Processor Expert defines the TRUE symbol as 1, however true and false logical values in C language are defined according to ANSI-C:

It follows from this definition, that the bool value cannot be tested using the expressions, such as if (value== TRUE).

Processor Expert methods returning bool value often benefit from this definition and they return non-zero value as TRUE value instead of 1. The correct C expression for such test is: if (value) ....

In our documentation, the "true" or "false" are considered as logical states, not any particular numeric values. The capitalized "TRUE" and "FALSE" are constants defined as FALSE=0 and TRUE=1 .