mercredi 29 juillet 2020

If... else condition in LUA language

I'm new to coding and I recently started to take my baby steps in LUA. I have a small problem so it would be very helpful if you can help me. In my code, I need to code that If x ~= 1 and x~=2 and x~=3 and x~=4 then (do something) end is there a faster way not to hardcode that part, not to type the whole thing from x~=1 to x~=4? Thank you!

Aucun commentaire:

Enregistrer un commentaire