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

Inizio della pagina
Delete this message
Reply to this message
Autore: Jeremy Harris
Data:  
To: exim-users
Oggetto: 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