Mid
Last updated
Last updated
This pre-built Action, located under @Generic Element Name, directs the Avo Assure Client to retrieve the middle character of an input string and store it in an output variable.
Input: <string>
1.
string
: It is the string of characters from which the middle character will be fetched.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
In a vehicle registration system, license plates are assigned based on specific formats that include a mix of letters and numbers. For validation, a user 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.