Re: [exim] conditionals in exim

Etusivu
Poista viesti
Vastaa
Lähettäjä: Steffen Heil
Päiväys:  
Vastaanottaja: 'Peter D. Gray'
Kopio: exim-users
Aihe: Re: [exim] conditionals in exim
Hi

> > 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."...

Regards,
Steffen