ConcatAction

TextActions. ConcatAction

An action "concat" that concatenates an array of strings and saves the result in a variable

Constructor

new ConcatAction()

Source:
Examples
{
    "concat": [
        "Hello",
        " ",
        "World!"
    ]
}
{
    "concat": {
         "strings": [
             "How",
             "dy!"
         ],
         "as": "myResultVariable"
    }
}
{
    "concat": {
         "strings": [
             "Hello, ",
             "$myStringVariable",
             " doing?"
         ],
         "as": "myResultVariable"
    }
}
{
    "concat": {
         "strings": "$myStringArrayVariable",
         "as": "myResultVariable"
    }
}
{
    "concat": {
         "strings": [
             "Variable: "
             {"variable": "myStringVariable"},
             " Property: ",
             {"property": "myStringProperty"}
         ],
         "as": "myResultVariable"
    }
}