math syntax help

Hi!
Are there any syntax equivalent to the java/actionscripts +=, -= etc, i can’t find anything when i search for it in the docs.

At the moment i’m doing this : value = value + 1. I’m guessing that’s not the most optimized way of doing it.

[import]uid: 103182 topic_id: 21160 reply_id: 321160[/import]

Well to the CPU, there is no difference between:

a += 1

and

a = a + 1

They both turn into

LDR R1, a
ADD R1, R1, #1
STR R1, a

at the machine level. The difference is simply human shortcuts and, no Lua does not support them. [import]uid: 19626 topic_id: 21160 reply_id: 83785[/import]

Ok, that answers my question. thanks =) [import]uid: 103182 topic_id: 21160 reply_id: 83788[/import]