StringInterpolate
Alias:StringInterpolate
Output:StringStream
Joins strings. Supports string interpolation. To use string interpolation, the string must be enclosed in double quotes and prefixed with a dollar-sign ($). Then, anything in curly brackets { and } will be evaluated as SCL.
Parameter | Type | Required | Position | Summary |
---|---|---|---|---|
Strings | List<IStep > | ✔ | 1 | The strings to join |
Examples​
Example 1​
SCL​
$"The answer is {6 + (6 ^ 2)}"
Expected Output​
The answer is 42
Example 2​
SCL​
$"The answer is {}???"
Expected Output​
The answer is ???
Example 3​
SCL​
$"(a:{1}, b:{}, c:{3}, d:{}, e:{5})"
Expected Output​
(a:1, b:, c:3, d:, e:5)