if [2, 3, 5, 7].any?{ |i| $game_variables[i] == $game_variables[11]} # do somethingelse # do other thingsend
if [2, 3, 5, 7].any?{ |i| $game_variables[i] == $game_variables[11]} # do something else # do other things end