hii.,
i write a simple code,and apply if statement but there is problem with the condition part
here is my code:
local ball=display.newImageRect("ball.png",100,100) ball.x=display.contentCenterX ball.y=display.contentCenterY local function ballmove(self,event) self.x=self.x-3; end ball.enterFrame=ballmove Runtime:addEventListener("enterFrame",ball) if (0\<ball.x\<display.contentWidth) then print("chetan") end
and error is: Attempt to compare boolean with number