multiple conditions in "if" statement?
eden at mojiti.com
Thu Jul 24 21:22:48 MSD 2008
Neither `&&` nor `||` are valid in nginx if statements. This isn't
ruby. See http://wiki.codemongers.com/NginxHttpRewriteModule#if for
On Thu, Jul 24, 2008 at 9:51 AM, Joshua Abbott <lists at ruby-forum.com> wrote:
> Yes, && works for me:
>>> if 1 == 1 && 2 == 2; puts "this worked"; end
> this worked
> => nil
> -- Josh
> Sean Allen wrote:
>> On Jul 21, 2008, at 1:28 AM, Jeffrey 'jf' Lim wrote:
>>> I know this has been talked about before, but never satisfactorily
>>> (and just to preempt - "or" isnt "and"). Is there any reason for not
>>> enabling "and"s in "if" conditions? Are there any plans to do so?
>> Wait, does this mean 'or' works in if conditions?
> Posted via http://www.ruby-forum.com/.
More information about the nginx