multiple conditions in "if" statement?
Joshua Abbott
lists at ruby-forum.com
Thu Jul 24 20:51:54 MSD 2008
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
mailing list