Jump to content
Sign in to follow this  
nokia6300

To 2 make this loop continuous times

Recommended Posts

nokia6300

For $i = 1 to 5
   MsgBox(0, "Count down!", $i)
   if $i= 5 then ContinueLoop
Next

I want to know how can I make it so that when it reach to number 5 it again start from 1 & end @ 5 & this process continue?

Share this post


Link to post
Share on other sites
monoceres

For $i = 1 to 5
   MsgBox(0, "Count down!", $i)
   if $i= 5 then $i=1
Next


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
nokia6300

But @ 2nd time it miss "1" & directly start from "2"

Share this post


Link to post
Share on other sites
monoceres

But @ 2nd time it miss "1" & directly start from "2"

Sorry, what I meant was

For $i = 1 to 5
   MsgBox(0, "Count down!", $i)
   if $i= 5 then $i=0
Next

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×