Jump to content
UBot Underground

break out a for loop


Recommended Posts

I have a for loop that loops 999 times as I need to amend the list that is being looped within the for.

The listtotal parameter appears to be set at the beginning of the loop and isn't dynamically checked each loop (from my test) hence why I need to set a large loop to assure the loop loops enough terms, however, this method requires the ability to manually break the loop.

 

I am sure I was able to break out a for by using

 

if (a=B)

then

return value

 

where value was just a nominal string.

 

Now this isn't working, the return is definitely hit as have added a javascript alert() to the then statement, but the return is ignored and the loop goes round again.

 

Any ideas?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...