Ask AI
Skip to main content

Create a string

Function: Create a string

This action allows you to create a new text variable and store a specific piece of text inside it. You give this variable a unique name, and then you can use this name to refer to your text throughout your application. This is useful for saving temporary information, user inputs, or any text you need to reuse in different parts of your workflow.

Input

  • Value (Text): The actual text content you want to save. This can be any combination of letters, numbers, and symbols.

Output

  • Variable name (Text): This is the unique name you choose for your new text variable. The action will create a variable with this name, making your provided 'Value' accessible throughout your application using this name. You must provide a name for your variable.

Execution Flow

Real-Life Examples

Here are some examples of how you can use the "Create a string" action:

  1. Saving a Welcome Message:

    • Inputs:
      • Value: "Welcome to our application, [User Name]!"
      • Variable name: "WelcomeMessage"
    • Result: A new text variable named "WelcomeMessage" is created, containing the text "Welcome to our application, [User Name]!". This variable can then be used in a notification or displayed on a page.
  2. Storing a Product ID:

    • Inputs:
      • Value: "PROD-XYZ-789"
      • Variable name: "CurrentProductID"
    • Result: A new text variable named "CurrentProductID" is created, holding the value "PROD-XYZ-789". This variable can be passed to other actions, like fetching product details from a database.
  3. Defining a Status Message:

    • Inputs:
      • Value: "Order processing complete."
      • Variable name: "OrderStatus"
    • Result: A new text variable named "OrderStatus" is created, containing the message "Order processing complete.". This variable can be used to update a user interface element or log the status of an operation.