Search the Community
Showing results for tags 'exit loop'.
-
I have many embedded loops to check for multiple possible errors. In each of those loops there are If/Then to detect which possible error it encountered and how to recover from that. To which the last part of the "then" needs to be stop executing this loop and go back to the last step. I see no way to do this in ubot. Other scripting apps I've used have commands like "Exit Loop" or "End Loop" to stop processing the rest of the loop. If there are 10 possible errors and I find the error on the first try, why even try the other 9 and waste all that time? The below is basically how it goes with mo
-
In my script, I have a Loop While command that executes so long as an element exists on the page. After completing a Google search, the script scrapes an element from the page and adds it to a table. The problem I'm running into is that the Loop does not stop immediately when the 'While' condition fails. For example: set(#smoothSailing,$true,"Global") loop while(#smoothSailing) { type text(<username field>,"Smooth Sailing is True","Standard") set(#smoothSailing,$false,"Local") type text(<about me textarea>,"This should not be entered since smoothSailing was set to f
- 2 replies
-
- loop while
- exit loop
-
(and 2 more)
Tagged with: