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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jeremy Harris
日付:  
To: exim-users
題目: 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