Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Continue For Loop

$
0
0

Hi all.

I'm struggling to find a way to move on a step in a loop.  The idea of below is that "Next Item" will never be echoed... but I'm getting a syntax error.. what have i done wrong?

dim i
for i = 0 to 3
	if i < 5 then
		WScript.Echo "1"
		Continue For
	end if
	WScript.Echo "Next Item"
next

I appreciate this looks like a rubbish script, but its an extrapolated short test, its just the general idea i need help with.

Using VBScript.



Viewing all articles
Browse latest Browse all 15028

Trending Articles



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