Fandom

WoWWiki

API strjoin

104,631pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < strjoin

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

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


Arguments Edit

("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.


Returns Edit

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


Example Edit

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

Result

HE/LL/O


Notes Edit

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

Also on Fandom

Random Wiki