I am looking for a concise way to check a value to see if it is nil or zero. Currently I am doing something like:
if (!val || val == 0) # Is nil or zero e
Another solution:
if val.to_i == 0 # do stuff end