Hey guys how do I figure out in a function if a certain variable is greater then another variable call the function.
local buy = widget.newButton { left = -45, top = 350, id = "buybtn", label = "Buy", } function isitgreater( event ) if score1 \> score2 then print("It is greater") score.subtract(event.target.value) end end buy:addEventListener("touch",isitgreater)