The instances2string function combines several instances into a single string. The syntax for this operation is:
variableA=instances2string(what, "separator") |
where:
variableA identifies the variable
what is a variable that has a number of instances
separator marks the separation between the elements of the string. This value must be specified between quotes because it could be a space.
For example, you could use the following variable to find the list of names and alias names for a given machine:
NameList=instances2string($cn, " ") |
If the cn attribute has the values camembert, Cam, Bertie, the resulting string would be:
camembert Cam Bertie