A variable is a value like val, var, and any other letter or word that is not already assigned to something else.
Changes a variable by 1 each time the left mouse button is clicked
function love.mousepressed( x, y, button ) if button == "l" then time = time + 1 end end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/variable