jamesfar 15 Posted June 3, 2012 Report Share Posted June 3, 2012 If i had a loop running 10 times and on the 3rd run i already got what i want then i want to get out of that loop. How do i write the code? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 3, 2012 Report Share Posted June 3, 2012 use a set var = i dont have what i want loop while (comparison(#var = dont have what i want)) then in your loop while once you have what you want set #var = i have what i want Quote Link to post Share on other sites
jamesfar 15 Posted June 4, 2012 Author Report Share Posted June 4, 2012 use a set var = i dont have what i want loop while (comparison(#var = dont have what i want)) then in your loop while once you have what you want set #var = i have what i want Thanks for reply but i got new problem. Here is the situation : 1. I scrape 10 items and add it to a list2. I run a loop based on list total on step 1 to check if an item on list step 1 contains "what i don't want" then change its value to "what i want" and get out of the loop. Else do nothing3. I want to check if the value replacement on step 2 is succeed or failed. So I do the same step as step 1 and run loop. If i got "what i want" then set status to succeed else set status to failed. How do i have to write the code? Please help Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 4, 2012 Report Share Posted June 4, 2012 It would be best if i had live example code to make changes to, to help you figure out the full logic. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.