String concatenation and expressions
There are two different ways to work with variables and strings in IBM® Rapid Infrastructure Automation®:
- The JavaScript + operator.
- Template literals.
The JavaScript + operator
In any IBM Rapid Infrastructure Automation® parameter, you can use the JavaScript + operator to concatenate strings and variables together.
'Hello' + ' ' + 'World'
Here are a few examples in IBM Rapid Infrastructure Automation®:


Template literals
Template literals tend to be more useful when you have a multi-line or more complex piece of text
into which you want to insert variable values. In a template literal expression, you wrap the string
in backticks (`
), and then inside the string you can use variables in a
${$variable_name}
format.
Making a BASH script to install a version of etcd on an Ubuntu Linux® host:

Building an etcd config file (first half):
