I want to create a loop with the following conditions
My criteria are noted below
- in a text box I want to pass a value from excel file
- if that value is not unique in the system, the system will pop up a message box
- Consider that message box as ELEMENT_EXIST
- if that ELEMENT_EXIST is true then I will iterate the value taken from excel
- In this method system will keep trying to generate a new unique string by iteration
- when the system gets the new unique string it will show a new message box to continue.
- at that point I want to break this loop and continue for the next item
Can anyone help me with the demo code?