Quoting Slavko via Exim-users (exim-users@???):
> > So, "! true" must mean "false", right?
> No, "! true" is just string, not Boolean negation.
Well, yes, if you take that literally.
As aparently 'condition' checks in routers do. ;)
With my programmer mindset it should "expand" to False (0).
Router conditions literally test for the string '', '0' or 'false'.
> You have to flip results string for negate it in lookup, eg.:
> ${lookup ldap{...}{true}{false}}
> and then
> ${lookup ldap{...}{false}{true}}
> Or make more detailed expansion, eg.:
> ${if eq{{YOUR_MACRO}{true} {true}{false}}
Thanks for your time, Slavko. This is what i ended up using!!
Do you think usage of '!' in router conditions should trigger a warning?
Regards,
-Sander.
--
| If I melted dry ice, can I swim without getting wet?
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7 FBD6 F3A9 9442 20CC 6CD2