cancel
Showing results for 
Search instead for 
Did you mean: 

breaking out of loop iteration

SOLVED
AlexKaras
Community Hero

Re: breaking out of loop iteration

Hi,

 

Apologies, I am noty trying to do the javascript 'break' but instead, the 'continue

Aha, now I see 🙂

 

if there was a way this could be done

I don't have any other idea except yours implementation and my suggestion with Option 1 (IF condition).

 

P.S. While you can create your custom keyword-driven operation (https://support.smartbear.com/testcomplete/docs/working-with/extending/script/creating/keyword-test-...) I am not sure about exact implementation for your case - how would you reference loop start to jump to to be accessible for your custom operation? But you may ask Support about this (https://support.smartbear.com/testcomplete/message/) and hopefully guys will provide you with some piece of advice.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Lee_M
Contributor

Re: breaking out of loop iteration

Alex,

 

The above posted solution works and intended, I just need to have BOTH of them.

These 2 steps could be made into a reusable function but it just seems that this common condition could have been made into a KW function from Smartbear.

 

Lee_M_0-1619007667337.png

 

 

Thank you for your help, I forgot about this little code snippet

 

New Here?
Join us and watch the welcome video:
Announcements