Re: [exim] if or if and example wrong?

Góra strony
Delete this message
Reply to this message
Autor: Ron White
Data:  
Dla: exim-users
Temat: Re: [exim] if or if and example wrong?
On Wed, 2010-05-05 at 14:06 -0700, Phil Pennock wrote:
> No, you've added extra braces around each point in turn.
>
> ${if CONDITION}
>
> CONDITION: and{}
> and{} takes sub-conditions, each of which is wrapped {inside-braces}
>
> So Ron wants:
>
>  ${if and{ {>={$spam_score_int}{$acl_m_spamscore}} \
>            {=={$acl_m_spamscan}{2}} } }

>
> -Phil


Thank you Phil. This fixed the issue and I have a (slightly) better
understanding of what is going on now. I note the change from eq to ==
as well. I guess that == is for numerical evaluations where as eq is
more suited to string? Similar to Perl?

Also a big thank you to Todd for replying and helping. Really
appreciated.

Thank you both.