Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Unable to use logic operators ("Access denied to method")

$
0
0

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

Viewing all articles
Browse latest Browse all 2665

Trending Articles