Value problem

Hi guys,

I don’t know how to lower the value. I couldn’t find anything about it in corona docs.  In c++ it was done like this

line1t.lines -= 1

Well, it doesn’t work in Corona SDK.

So can anyone tell me how to write this in lua.

To be clear what i want to do

local function onLineTouch( self,event) line1t.lines -= 1 -- this doesn't work if ( line1t.lines == 0 ) then print("good") end

Thanks!

Hey

value = value - 1

Regards
Rich

Thanks for fast answer. It working now.

Hey

value = value - 1

Regards
Rich

Thanks for fast answer. It working now.