From: Edward QU Date: 2012-09-03T20:38:49+09:00 Subject: hwo to compare a number use in[a..b] dear all ----------<8------------- ------------1----------- if A=13 do something else raise some warning end -------------2----------- if A=14 do something #(the same as 1 ) else raise some warning #(the same as 1) end ------------8>---------------- so, is there other word like if A is in[13..14] else raise some warning #(the same as 1) end any help would be appropriated. Edward -- Posted via http://www.ruby-forum.com/.