Left

This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to extract characters from the left side of the given text, starting from the specified position. The extracted text is then stored in a dynamic variable.

Syntax

Input Value: <string>;<position to fetch the string from left>

Argument
Description

<string >

(Required)

Provide the sequence of characters from which a specific portion needs to be fetched from the left side.

<position to fetch the string from left> (Required)

Provide the count of characters to extract from the left side of the given string. Count number must be a positive integer. Note: Index value starts from 1.

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable holds the leftmost characters of a string.

<Dynamic Variable> (Optional)

This dynamic variable stores the operation status as True or False.

Example: Extracting Characters from the Left Side of a String

In this example, we explain how to extract a specific number of characters from the beginning of a string.

  • Action: Left

  • Input Value: Automation;3

    • The first argument (Automation) specifies the main string,

    • The second argument (3) specifies the count that determines how many characters to extract from the given string.

  • Output Value: {Left String}

    • The extracted substring (e.g., Aut) is stored in this {Left String} dynamic variable for further use.

    • If the second output variable is defined, it stores the action status with the following possible values:

      • True: If the substring is successfully extracted.

      • False: If the extraction fails due to invalid input or configuration.

  • Logical Explanation: The Left action fetches the string from the Input Value column (Automation;3) and extracts the 3 characters of the string from left. The resulting substring (Aut) is stored in the {Left String} variable.

Knowledge Bites: Below are some examples of different string scenarios

String
Input Value
Result

Text Strings

Software Enginner;3

Sof

Numeric Strings

123456;4

1234

Special Character

abc@dom

Alphanumeric strings

ID2025;2

ID

Last updated

Was this helpful?