Shared
string.split
Function to split text by delimiter
Parameters description
text
- the text to splitdelimiter
- the delimiterreturnAllAs
- sets what to return the values as (if you choose 'number' and one or more of the values can't be number, it will return the string version, if nil, it will be the default, to return as string)isArray
- sets whether or not the return value must be multiple values of the splitted string or an array full of the splitted parts
string.gather
Function to combine multiple strings into one with delimiter
Parameters description
source
- list of strings to combinedelimiter
- the delimiter between the strings in the main one
Return description
result
- the combined string or nil if there's nosource
Last updated