I'm guessing reason is something other than a number. You can cast it to a number using the to_i
(integer) or to_f
(float) methods.
For example:
if reason.to_i > 2000 then 'yes' else 'no' end
I'm guessing reason is something other than a number. You can cast it to a number using the to_i
(integer) or to_f
(float) methods.
For example:
if reason.to_i > 2000 then 'yes' else 'no' end