Hi,

On Fri, Oct 22, 2010 at 12:50:16PM +0200, Sebastien Estienne wrote:
> hello,
> 
> I want to combine 'and' and 'or' but with grouping:
> 
> if cond_1 and (cond_2 or cond_3)
> 
> should i do this in 2 steps:
> 
> use_backend foor if cond_1 cond_2
> use_backend foor if cond_1 cond_3
> 
> or can i do this in one line?

we don't support parenthesis because all forms can be developped into
the one you used. But you can still use one single line if it helps
you write more maintainable rules :

  use_backend foor if cond_1 cond_2 or cond_1 cond_3

Regards,
Willy


Reply via email to