Right

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 right side of the given input text. The extracted text is stored in a dynamic variable.

Syntax

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

Argument
Description

<string > (Required)

Provide the sequence of characters from which a specific portion is fetched from the right side.

<position to fetch the string from right> (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 starts from 1.

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

Argument
Description

<Dynamic Variable>

(Required)

This dynamic variable holds the rightmost characters of a string

<Dynamic Variable>

(Optional)

This dynamic variable stores the status as True or False.

Example: Extracting Characters from the Right Side of a String

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

  • Action: Right

  • Input Value: Automation;3

    • The first part (Automation) specifies the original string.

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

  • Output Value: {Right String}

    • The extracted substring (ion) is stored in this {Right 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 Right action fetches the string from the Input Value column (Automation;3) and extracts the 3 characters from the right. The resulting substring (ion) is stored in the {Right String} variable.

Knowledge Bites:

Here are some examples of different string scenarios:

String
Input Value
Result

Text Strings

Software Engineer;5

ineer

Numeric Strings

123456;5

23456

Special Character

domain.com

Alphanumeric strings

ID2025;1

5

Last updated

Was this helpful?