Re: [exim] conditionals in exim

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] conditionals in exim
Steffen Heil <lists@???> (Mi 03 Jan 2007 10:27:44 CET):
>
> > > In some placed I have
> > > condition = ${if somecondition {1}{0}} Why can't I gust write
> > > condition = somecondition
> > > ??
> >
> > How would you tell it was a condition and not a string?
>
> Not at all. That's just the point.
>
> Strings are the only value type in exim and as such there should not be a
> difference between conditions and values.
> Strings could just be interpreted as conditions if used in such places (as
> they are anyway within the "then" and "else" strings of conditionals
> already).
>
> Another example for this simplification would be:
>
> Instead of
> condition = {$if eq{a}{$b} {1}{0}}
> you could just write
> condition = $eq{a}{$b}
> Which is really what you mean.
> Right now you need to say, "if it's true then it's true otherwise it
> isn't."...


Sure?

    exim4 -be '$eq{a}{a}'
    Failed: unknown variable name "eq"


but:
    exim4 -be '${if eq{a}{a}}'
    true


--
Heiko