Get String Length

This pre-built action located under @Generic Element. The functionality of this action in Avo Assure is to count the characters in a given string from the Input Value and store the string length in a dynamic variable.

Syntax

Input Value: <string>

Note:

  • Spaces are also counted as characters.

  • Index counting starts from 1.

Argument
Description

<string> (Required)

Provide the string whose length needs to be calculated.

Output Value:

Argument
Description

<Dynamic Variable>

(Required)

This variable holds the calculated string length (as a number).

<Dynamic Variable>

(Optional)

This variable stores the operation status as True or False.

Example:

Get length of the given string

The Get String Length action takes the value from the Input Value column (Alice Johnson), calculates the number of characters including spaces, and stores the result in a variable {number of characters}. The operation status is stored in the {status} variable, with the following possible values:

  • True – If the length of the string calculated successfully or

  • False – if the invalid input or If technical/network issue.

Knowledge Bites: Below are some examples of different string scenarios

String
Input Value (syntax)
Result

Text Strings

Automation

10

Numeric Strings

123456

6

Special Character

14

Alphanumeric strings

ID202556

8

Last updated

Was this helpful?