Search the Community
Showing results for tags 'gettime'.
Found 2 results
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.
i have a problem with function getTime .. i want to get the night time and the night time is starting in 20 and end in 6 when i cheak if the time between 20 and 6 i dosen't work , no debugs nothing but if i cheak if time between 20 and 23 it's work why ? local h, m = getTime() if tonumber(h) >= 20 and tonumber(h) < 6 then