WoW:API strjoin: Difference between revisions
Jump to navigation
Jump to search
(New page: strjoin(delimiters, string, string,...) -delimiters is the charcter , such as " ", "/","." Example: a=strjoin("/", "HE", "LLO"); SendChatMessage(a,"say"); output: HE/LLO) |
m (Move page script moved page API strjoin to API strjoin without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
strjoin( | {{wowapi}} | ||
Joins strings together with a delimiter. (An alias with string.join) | |||
local joinedString = strjoin(delimiter, string, string,...) | |||
== Arguments == | |||
:("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. | |||
HE/ | == Returns == | ||
:;joinedString : String - A string containing all the string arguments with the delimiter between each one. | |||
== Example == | |||
a = strjoin("/", "HE", "LL", "O"); | |||
SendChatMessage(a, "say"); | |||
<big>'''Result'''</big> | |||
HE/LL/O | |||
== Notes == | |||
In patch 3.1, string.join is an alias for strjoin (they point to the same function). | |||
Latest revision as of 04:47, 15 August 2023
Joins strings together with a delimiter. (An alias with string.join)
local joinedString = strjoin(delimiter, string, string,...)
Arguments
- ("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
- joinedString
- String - A string containing all the string arguments with the delimiter between each one.
Example
a = strjoin("/", "HE", "LL", "O");
SendChatMessage(a, "say");
Result
HE/LL/O
Notes
In patch 3.1, string.join is an alias for strjoin (they point to the same function).