Detailed Information - Comparing Boolean Values
INCA writes Boolean values dependent on the option either as text (true/false) or as number (1/0). A comparison must respect this.
Hint:
- DCM V1 always writes 0/1 as only numbers and not text are supported.
If datasets (with A2L description) are compared, the type (Boolean) can be detected by a bitmask that masks exactly one bit.
INCA detects equality if source and destination both have Boolean type and
- same value
- 1 and true
- 0 and false
If file-based data is compared, the type cannot be detected unambiguously:
true/false can be
- Boolean
- text list (enum)
1/0 can be
- Boolean
- numeric
Therefore only values of the same category can be compared.
INCA detects equality if source and destination both have Boolean type and the same value. A comparison of mixed mode (1/0 and true/false) always results in 'not equal'.
If a dataset is compared with a file, INCA knows the type of the dataset but not of the file.
INCA detects equality if the dataset has Boolean type and the file uses true/false.