What's Corona's equivalent of -- and ++

Sorry, basic question :-)

How do I write:


All I can find that works in Corona is num = num + 1;



That is correct!

num = num + 1


var++ is a 'C' construct and from what I can tell, the designers of Lua wanted to stay as far away from 'C' as possible.

views:1455 update:2011/9/30 9:15:39
corona forums © 2003-2011