From: Peter Lynch Date: 2006-10-30T16:43:21+09:00 Subject: Using "not" in compound conditions Hi I am still a beginner at Ruby, and have just arrived at this in my learning curve. I would like to code not(condition1) && not(condition2) This is accepted in irb - not(condition1) && condition2 but this produces a syntax error condition1 && not(condition2) I do not get it (obviously). I do not even know what to ask in reply - How do I code a compound condition, without introducing extra wrappers like - (not(condition1)) && (not(condition2)) Regards Peter -- Posted via http://www.ruby-forum.com/.