I know in other languages such as C and Java the equivelant of
i = i + 1
is
i++
Is there a same keyword for lua or do you just have to write it out?
I know in other languages such as C and Java the equivelant of
i = i + 1
is
i++
Is there a same keyword for lua or do you just have to write it out?
Unfortunately there is no ++
operator in Lua and you will have to do i + 1
.
There isn’t i++
but if you’re on Roblox Lua, you could use
i += 1
For vanilla Lua, you have to write it out.
Luau added the +=
feature so you don’t have to do i + 1