Hey devforum! I am trying to come up with a code to convert one string into multiple strings. I checked String.split on Api, but it didn’t work. Thanks in advance, it’s probably a simple error but I’m still new to strings.
local input = {"test,10"}
local values = input:split(",") --this line errors
for i,v in pairs(values)do
print(v)
end
--expected output : "test", "10"
--got: Script:3: attempted to call a nil number