dimanche 27 août 2017

How do you write this shorter?

I thought there was and better nice way to write this but I can't remember.
Is there an nicer way to write this in Lua?

if curSwitch == "shapes" then
  curSwitch = "colors"
elseif curSwitch == "colors" then
  curSwitch = "shapes"
end

Aucun commentaire:

Enregistrer un commentaire