Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {..}
- local key = tArg[1]
- local Result = -1
- if key == "one" then
- Result = 1
- elseif key == "two" then
- Result = 2
- elseif key == "three" then
- Result = 3
- elseif key == "four" then
- Result = 4
- elseif key == "five" then
- Result = 5
- elseif key == "six" then
- Result = 6
- elseif key == "seven" then
- Result = 7
- elseif key == "eight" then
- Result = 8
- elseif key == "nine" then
- Result = 9
- elseif key == "zero" then
- Result = 0
- else
- Result = -1
- end
- return(Result)
Add Comment
Please, Sign In to add comment