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

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jeremy Harris
Data:  
Para: exim-users
Assunto: 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