Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function tobool(var)
- if var == "false" or var == 0 or var == "0" then
- return false
- elseif var == "true" or var == 1 or var == "1" then
- return true
- else
- Spring.Echo("Error in tobool: not a compatible variable.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement