Re: "else" logic condition?
Jasen Betts via Exim-users <[email protected]> Fri, 21 Nov 2025 06:44:16 -0000 (UTC)
| Newsgroups | gmane.mail.exim.user |
|---|---|
| Organization | JJ's own news server |
| Message-ID | <[email protected]> |
On 2025-11-17, MRob via Exim-users <[email protected]> wrote: > Hello, its nice I could narow condition in same ACL: > > warn condition = {an broad test} > logwrite = Many message fit here > condition = {an narow test} > logwrite = No many message fit here > > But is there trick for "else" logic? So dont have to use temp var: > > warn condition = {an test} > logwrite = Something > set acl_m_temp = yes > > warn !condition = ${if def:acl_c_discard} > logwrite = Something else > You used two different variable names I'm assuming you intended to use the same name both times. Assuming you don't want logwrite = Something${if bool{{an test}}{}{ else}} Create new acl.... foo: accept condition = {an test} logwrite = Something accept logwrite = Something else Then in the place of your original: warn acl=foo -- Jasen. 🇺🇦 Слава Україні -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## [email protected] ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/