Welcome! Log In Create A New Profile

Advanced

Re: Binary logic in "if" directive

Maxim Dounin
October 22, 2009 09:08AM
Hello!

On Thu, Oct 22, 2009 at 04:04:32PM +0400, Igor Katson wrote:

> Is it possible to combine several conditions in the if directive, like
>
> condition1 AND condition2 OR condition3
>
> ?
>
> Or at least just condition1 AND condition2?

No.

Workaround is to use set + regex checks in if, e.g.

set $blah "$arg_a:$arg_b";

if ($blah ~ ^a:b$) {
...
}

Note though that if is evil. Search list archives for details.

Maxim Dounin
Subject Author Posted

Binary logic in "if" directive

descentspb October 22, 2009 08:12AM

Re: Binary logic in "if" directive

Maxim Dounin October 22, 2009 09:08AM

Re: Binary logic in "if" directive

descentspb October 23, 2009 07:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready