Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getWords(str)
- words = {}
- sp = 1
- while sp do
- sp,ep = string.find(s," ")
- if sp then
- table.insert(words,string.sub(s,1,sp-1))
- s = string.sub(s,sp+1)
- else
- table.insert(words,s)
- end
- end
- return words
- end
- function boolStrToNumber(str)
- if str then
- if str == "true" then
- return 1
- elseif str == "false" then
- return 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement