local total = 90 local count = 0 if count > 0 and total / count > 0 then print("Average: " .. (total / count)) else print("no data") end