Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 771

Re: exit an array loop on condition becomes true

$
0
0

Hi Gaurav,

 

As others have stated, I don't think there is an effective way you can exit a for loop.  If it was possible to pass dimension member arrays as a parameter to a Global Script Function (which unfortunately is currently not supported) then you could have achieved the desired result with a recursive global script function that exits with a return statement when a zero headcount is found.

 

Regards,

 

Mustafa.


Viewing all articles
Browse latest Browse all 771

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>