Reputation: 88
I would like to know if there is a add assignment (+=) or a similar assignment in lua since I'm used to using it from other languages like Python and C#
Upvotes: 0
Views: 261
Reputation: 1762
No, you have to use x = x + 1
.
There is a Lua transpiler called Moonscript that has this feature.
Upvotes: 2