def if_in_case case x1 when 1 then (if x2 then puts "x2" end) when 2 then puts "2" end end