Left
Last updated
Last updated
This pre-built Action located under the @Generic Element Name instructs the Avo Assure Client to fetch the characters started from specified position, from the left side of String and store the result in an output variable.
Input: <string>;<position to fetch the string from>
1. string: It is Actual string to fetch number of characters starting from left
2. position to fetch the string from: count of the characters to be fetched from Input String
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
In a banking application, each customer has a unique Customer ID that is generated when they open an account. The Customer ID might include a prefix indicating the type of account, followed by a sequence of numbers. For validation and processing, user may need to extract the prefix (the first few characters) to determine the account type.
Input: The application generates Customer IDs such as:
SAV-123456
CHK-789012
FIX-345678
Expected result: It needs to verify that the Customer ID starts with the correct prefix indicating the account type (e.g., SAV for savings, CHK for checking, and FIX for fixed deposits).
Output: The output is stored in the {result} output variable as SAV, which can be utilized for display or other purposes.