Re: [exim] problem with ${if } in nested and {} condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: Re: [exim] problem with ${if } in nested and {} condition
On 02/18/2010 10:00 PM, Marten Lehmann wrote:
> Hi,
>
> I need to build a condition with nested if-s, but I cannot get it work:
>
>     defer   condition     = ${if  and { \
>                                           { \
>                                                   ${if eq{}{} \
>                                                   {true} \
>                                                   {false} } \
>                                           } \
>                                           {eq{}{}} \
>                                   } \
>                              }


You can't put the ${if inside there. What you_can_
do is put "eq {} {}" there - which evaluates to a truth-value,
which is part of the "and".

Cheers,
    Jeremy