How I run the line only once, until the condition is true again?
timehour, timeminute = getTime()
var = 0
if timehour == 12 and timeminute == 0 then
var = var + 1 --I want to execute this line only once whenever the condition is true
end
Apparently the line runs more than once during the time of the condition.