TwilightN3ro Posted May 7, 2011 Share Posted May 7, 2011 Hey guys, If been looking around but i cant find my answer, Not sure if it is even possible. So, Setting my loop for 20 times(Just a random number) Is it possible to say, After 5 times, Do this, Then return to the loop, After 5 times, Same process. over and over. Is this possible? Hope someone could help me out with this been bugging me for a while now lol:P Thanks;) Link to comment Share on other sites More sharing options...
bwochinski Posted May 7, 2011 Share Posted May 7, 2011 (edited) Easy! For $i = 1 To 20 ;loop 20 times ConsoleWrite("loop " & $i & @CRLF) If Mod($i,5) == 0 Then ; do something here every 5th loop ConsoleWrite("something extra! " & @CRLF) EndIf Next Edited May 7, 2011 by bwochinski Link to comment Share on other sites More sharing options...
TwilightN3ro Posted May 7, 2011 Author Share Posted May 7, 2011 Ah wonderfull thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now