i++ ?

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

i++ ?

Post by the underminer »

how to do this in lua?
I tried i+= and i++ and i=+
none works...
Behold! The Underminer got hold of a PSP
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

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
User avatar
daurnimator
Posts: 38
Joined: Sun Dec 11, 2005 8:36 pm
Location: melbourne, australia

Re: i++ ?

Post by daurnimator »

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 "++"
imhotep
Posts: 41
Joined: Tue Dec 13, 2005 9:15 pm

Post by imhotep »

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
Post Reply