From: 7stud -- Date: 2011-05-08T11:29:23+09:00 Subject: Re: Help with while condition OR condition Hi, A lot of beginners make the same mistake you did. 'Compound conditionals' have to be written like separate conditionals and then hooked together with an 'or' or 'and'. For instance if you wanted to do something only if a number were greater than 5 and less then 10, you would do this: x > 5 x < 10 and if x > 5 and x < 10 #do something end Everyone should use 'and' and 'or' by default instead of && and ||. Code reads better that way. Only if you have a specific reason to, should you use && or ||. Good luck. -- Posted via http://www.ruby-forum.com/.