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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy Harris
Dátum:  
Címzett: exim-users
Tárgy: 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