Skip to content

Instantly share code, notes, and snippets.

@lagagain
Created February 28, 2020 15:35
Show Gist options
  • Save lagagain/77f5a25f66f7436c67cfb29099bac606 to your computer and use it in GitHub Desktop.
Save lagagain/77f5a25f66f7436c67cfb29099bac606 to your computer and use it in GitHub Desktop.
function on_back_click()
local str = tostring(input_number)
str = str:sub(0, str:len()-1)
input_number = tonumber(str)
if not input_number then input_number = 0 end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment