Arbortext Command Language > Using the Arbortext Command Language > String Concatenation
  
String Concatenation
Use a dot (.) as the concatenation operator to merge two strings into one string. You can also use a dot to concatenate a combination of string variables.
The following example shows how dot concatenation is used to set the value of $filename to datafile.txt.
$textfile="datafile"
$extension=".txt"
$filename=$textfile . $extension
* 
The dot in $extension=".txt" is not a concatenation operator.
The following example shows how to use the dot operator to concatenate a combination of strings and string variables:
$firstname="John"
$lastname="Smith"
$myname="My name is " . $firstname ." " . $lastname . "."
In the example above, the value of $myname is My name is John Smith.