Assign action

The Assign action in the String package enables you to assign or concatenate strings.

Settings

  • Optional: In the Select the source string variable(s)/value field, specify the variable or values. This field holds up to 65535 alphanumeric, character, and empty values.
    Note:
    • To provide a string that includes a dollar sign ($), you must enter two dollar signs. For example, if you enter Pay $5.00, the output will be Pay $5.00.
    • The values or variables that you can specify for the String package are predefined. See Predefined variables
  • In the Select the destination string variable field, specify the variable.

Example

Create a sample bot and perform the following steps to concatenate two strings:
  1. Create a bot.
    1. On the left panel, click Automation.

      A list of available bots and forms is displayed.

    2. Click Create a bot.
    3. Enter the bot name: String_assign.
    4. Click Create and Edit.
  2. Create the user-defined variables using the Create variable (+) icon at the top of the Variables menu.
    1. Create a variables of String to hold the values.
    2. In the Edit variable window, enter the Name, select the Type and enter the following values:
      Name Type Value
      var1 String Snow
      var2 String ball
  3. To concatenate two strings, from the Actions pane, double-click or drag the String > Assign action.
    1. In the Select the source string variable(s)/ value (optional) field, select $var1$var2$.
    2. In the Select the destination string variable field, click the Create variable icon to create a variable.
    3. On the Create variable window, enter vassign in the Name field.
    4. Click Create and select.
  4. To print the values, double-click or drag the Message box action. In the Enter the message to display field, enter $vassign$.
  5. Click Save and then Run.

    The bot concatenates two strings and displays the output as Snowball.

    Concatenate two strings