Assign action
- Updated: 2023/06/22
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
- 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
- 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:
- Create a bot.
- On the left panel, click Automation.
A list of available bots and forms is displayed.
- Click Create a bot.
- Enter the bot name: String_assign.
- Click Create and Edit.
- On the left panel, click Automation.
- Create the user-defined variables using the Create variable (+) icon at the top of the
Variables menu.
- Create a variables of String to hold the values.
- 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
- To concatenate two strings, from the Actions pane, double-click or drag the
action.
- In the Select the source string variable(s)/ value (optional) field, select $var1$var2$.
- In the Select the destination string variable field, click the Create variable icon to create a variable.
- On the Create variable window, enter vassign in the Name field.
- Click Create and select.
- To print the values, double-click or drag the Message box action. In the Enter the message to display field, enter $vassign$.
- Click Save and then
Run.
The bot concatenates two strings and displays the output as Snowball.