join()
Join the supplied strings together and place a separator between each of the strings.
Syntax
join(separator,str1,str2,[str3,...,strn])
Parameter
Parameter | Definition |
---|---|
separator | specified delimiter used to separate the joined strings |
str1...strn | two or more strings (up to 99) that are to be joined |
Description
The join() function joins the supplied strings together and places the separator between each of the strings. Use the join() function instead of PSL techniques for common string manipulation. This function takes at least three parameters. The join() function is equivalent to the following PSL statement:
text = str1 . separator . str2 . separator . str3 ...;
Example
The following example joins three strings:
filename = join("/","/usr","local","bin");
print(filename);
print(filename);
This example produces the following output:
/usr/local/bin
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*