Difference between revisions of "Stringjoin"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "Category:String_Functions {{HelpFiles}} ==== stringjoin ==== To check that it is a dictionary or is not '''Syntax''' stringjoin(string separator, array stringsT...")
 
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
==== stringjoin ====
 
==== stringjoin ====
  
To check that it is a dictionary or is not
+
Join list of strings in an array of strings with the specified separator
  
 
'''Syntax'''
 
'''Syntax'''
Line 14: Line 14:
 
separator: is string
 
separator: is string
 
stringsToJoin: is an array
 
stringsToJoin: is an array
 +
 
'''Return type'''
 
'''Return type'''
 +
 
string
 
string
 
'''Example'''
 
'''Example'''
 +
 
<source lang="javascript">
 
<source lang="javascript">
 
print(stringjoin(" <=> ",{1,2,"bbbbb",4,5}));
 
print(stringjoin(" <=> ",{1,2,"bbbbb",4,5}));

Latest revision as of 05:18, 27 July 2018



stringjoin

Join list of strings in an array of strings with the specified separator

Syntax

stringjoin(string separator, array stringsToJoin)

Arguments

separator: is string stringsToJoin: is an array

Return type

string Example

print(stringjoin(" <=> ",{1,2,"bbbbb",4,5}));

// result: 1<=>2<=>bbbbb<=>4<=>5


Availability

Version 5.8