is there a IIF equavalent in Ruby. I could not find one
I am looking for something like
result=IIF(left==right,returntrueval, returnfalseval)

I can wriet a quick function to do it but if something exists, i dont
want to reinvent the wheel.