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
This evaluates to true for nil and zero: nil.to_s.to_d == 0
nil.to_s.to_d == 0