WoW API: strjoin

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API strjoin to API strjoin without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < strjoin

Joins strings together with a delimiter. (An alias with string.join)

local joinedString = strjoin(delimiter, string, string,...)


ArgumentsEdit

("delimiter", "string1", "string2",...)
delimiter
String - The delimiter to use between each string being joined.
string1
String - The first string being joined.
string2
String - The second string being joined.


ReturnsEdit

joinedString
String - A string containing all the string arguments with the delimiter between each one.


ExampleEdit

a = strjoin("/", "HE", "LL", "O");
SendChatMessage(a, "say");

Result

HE/LL/O


NotesEdit

In patch 3.1, string.join is an alias for strjoin (they point to the same function).