Wikia

WoWWiki

Watchlist Recent changes

API strjoin

Main Menue



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

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


Contents

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).

Pages on WoWWiki

94,154pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,612photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki