From: dare ruby Date: 2008-02-14T16:01:14+09:00 Subject: Problem usning 'OR' operator in 'IF' condition? Dear friends, I have got an error when i tried to check multiple condition using "OR" operator inside "IF" loop. my code is if @character != 'R' || @character != 'r' raise " Expected 'R' after 'E' in version Declaration" end Even when i pass a value for @character as 'R' its showing error like Expected 'R' after 'E' for version Declaration (RuntimeError) Please could any one explain in detail about the problem and how to solve it when i have to use multiple check in the same if loop. Thanks in advance Regards, Martin -- Posted via http://www.ruby-forum.com/.