Skip to content

Length Operation: length

The length operation under the String Operations function is used to calculate the total number of characters in a given string, including spaces. This operation helps determine the size of a string, which is useful for data validation, formatting, or processing workflows.

Example: Suppose you have a string “HuLoop Automation” and want to calculate the total number of characters in the string, including spaces.

Steps to Configure:

  1. Add a new step.
  2. Select SET from the Action dropdown.
  3. Enter a variable name in the Element Key field (e.g., StringLength). This variable will store the length of the string.
  4. Click on Form, select Functions, and choose String Operations.
  5. Provide the following parameters:
    • operation: Choose length.
    • data: Enter the string for which you want to calculate the length (e.g., “HuLoop Automation”).
  6. Click Save.
v7_string_op_length_list_view
List View
v7_string_op_length_grid_view
Grid View

Outcome on Execution:

  • The operation calculates the length of the string, including spaces.
  • For the string “HuLoop Automation“, the length is 17.
  • The result (17) is stored in the variable defined in the Element Key field (e.g., StringLength).
  • This variable can be referenced in subsequent automation steps using the syntax ${Variablename} (e.g., ${StringLength}).

Last updated: Oct 7, 2025
Back To Top