Rule not working?

Why does the following rule does not work ?

If ZONNEBOILER_GEBRUIK is not empty and MAATREGELEN_NAAM is not ZONNEBOILER or WARMTEPOMPBOILER, the rule should return 1. But it returns 1 also when MAATREGELEN_NAAM = ZONNEBOILER or WARTEMPOMPBOILER when ZONNEBOILER_GEBRUIK is filled in…

not isempty([ZONNEBOILER_GEBRUIK])
and
(
[MAATREGELEN_NAAM] != ‘ZONNEBOILER’
or [MAATREGELEN_NAAM] != ‘WARMTEPOMPBOILER’
)

[MAATREGELEN_NAAM] != ‘ZONNEBOILER’ or [MAATREGELEN_NAAM] != ‘WARMTEPOMPBOILER’ always results in true. You should use and instead of or.

good point :slight_smile: