Concatenate
Function: Concatenate
This action allows you to combine two separate pieces of text into a single, longer piece of text. It's incredibly useful when you need to merge information from different sources, build dynamic messages, or format text in a specific way within your application.
Input
- Left text (STRING, Required): This is the first part of the text you want to combine. It will appear at the beginning of the final combined text.
- Right text (STRING, Required): This is the second part of the text you want to combine. It will be added immediately after the 'Left text'.
Output
- Result (STRING): The new, combined text. This output will be automatically stored in a variable. By default, this variable will be named
RESULT, but you can specify a different name for your variable within your workflow if needed.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Concatenate" action in your applications:
-
Combining First and Last Names:
- Inputs:
Left text: "John"Right text: "Doe"
- Result: The variable
RESULTwill contain "JohnDoe". (You might add a space in one of the inputs if you want "John Doe").
- Inputs:
-
Creating a Full Address Line:
- Inputs:
Left text: "123 Main St, "Right text: "Anytown, USA"
- Result: The variable
RESULTwill contain "123 Main St, Anytown, USA".
- Inputs:
-
Generating a Product Code from Two Parts:
- Inputs:
Left text: "PROD-"Right text: "XYZ-001"
- Result: The variable
RESULTwill contain "PROD-XYZ-001".
- Inputs:
-
Building a Personalized Greeting:
- Inputs:
Left text: "Hello, "Right text: "Sarah!"
- Result: The variable
RESULTwill contain "Hello, Sarah!".
- Inputs: