Left
This pre-built action located under @Generic Element. The functionality of this action in Avo Assure is to fetch characters starting from the desired position on the left side of the string and store the result in a dynamic variable.
Syntax
Input Value: <string>;<position to fetch the string from left>
<string >
(Required)
Provide the sequence of characters from which a specific portion is fetched from the left side.
<position to fetch the string from > (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> (Required)
This variable holds the leftmost characters of a string.
<Dynamic Variable> (Optional)
This variable stores the operation status as True or False.
Example:
Extract the first 3 characters from the string "Automation" The Left action allows the user to extract a value from the Input Value column (Automation) by fetching the first 3 characters. The extracted substring (Aut) is stored in the {Left Position} variable. The operation status is stored in the {Status} variable with the following possible values:
True – if the substring is successfully extracted
False – if the specified position is invalid or the input is empty
None/Blank: If the Input Value is missing.

Knowledge Bites: Below are some examples of different string scenarios
Text Strings
Automation;3
Aut
Numeric Strings
123456;3
123
Alphanumeric strings
ID2025;2
ID
Last updated
Was this helpful?