I am trying to do something like this in ruby:
x = 0
y = 1
z = "!="
if x #{z} y
puts "True"
end
#True
#=> nil
x = 1
if x #{z} y
puts "True"
end
#True
#=> nil
Using a operator as a variable is not evaluating the expression. Any way to do this.