| View previous topic :: View next topic |
| Author |
Message |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Mon May 22, 2006 1:47 am Post subject: i++ ? |
|
|
how to do this in lua?
I tried i+= and i++ and i=+
none works... _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
KawaGeo
Joined: 27 Aug 2005 Posts: 191 Location: Calif Mountains
|
Posted: Mon May 22, 2006 4:29 am Post subject: |
|
|
You need to do each in traditional expressions like BASIC or Pascal, that's, for instance:
a += b -> a = a + b
. _________________ Geo Massar
Retired Engineer |
|
| Back to top |
|
 |
daurnimator

Joined: 11 Dec 2005 Posts: 38 Location: melbourne, australia
|
Posted: Mon May 22, 2006 11:50 pm Post subject: Re: i++ ? |
|
|
| the underminer wrote: | how to do this in lua?
I tried i+= and i++ and i=+
none works... |
lol, think about things logically - "i = i + 1"
but, i do wish lua had "+=" - or even "++" |
|
| Back to top |
|
 |
imhotep
Joined: 13 Dec 2005 Posts: 41
|
Posted: Fri May 26, 2006 1:24 am Post subject: |
|
|
yeah i think that sucks too, when i switch between PHP and lua
i get confused every time :P
it would be really cool to have this implemented into LUA |
|
| Back to top |
|
 |
|