Mid
Last updated
Last updated
This is pre-built Action located under the @Generic Element Name, It tells the Avo Assure client to fetch the single character that's in the middle of the input string and store the result in an output variable.
Input: <string>
string: It is the string of characters from which the middle character will be fetched
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
Scenario: License Plate Number Validation in a Vehicle Registration System
In a vehicle registration system, license plates are assigned based on specific formats that include a mix of letters and numbers. For validation, you may need to check the middle character of the license plate to ensure it follows a certain criterion, such as being an alphabetic character.
Input: The application generates various license plate numbers, such as:
ABC1PQ234
GHI5EF678
JKL9MN56O
RST1A3XYZ
Expected Result: It should show middle character of each license plate is a letter.
Output: The resulting string is stored in the {result} output variable as P, which can be utilized for display or other purposes.