On Tue, 4 May 2004, Andreas Metzler wrote:
> On 2004-05-04 Marc Perkel <marc@???> wrote:
> > Something I'd like in routers is to be able to specify multiple
> > "condition =" lines and that all the conditions have to be true (and)
> > for the router to be selected.
>
> condition = and {\
> {condition1}\
> {condition2}\
> }
No, you need to wrap the and{} in an ${if, and the individual conditions
are not themselves suitable arguments to and{}. The general answer is
something like
condition = ${if or{ \
{match{condition1}{\N^(?i:0*|no|false)$\N}} \
{match{condition2}{\N^(?i:0*|no|false)$\N}} \
{match{condition3}{\N^(?i:0*|no|false)$\N}} \
} {no} {yes} }
Perhaps there should be an expansion condition that does something like
the match{}{} above -- though with positive logic rather than negative
logic :-)
--
Tony Finch <dot@???>
http://dotat.at/