Jump to content

Repeating


Recommended Posts

Hello again,

I have problem with "for $i= 1 to xx" command

I've wrote something like that:

$ilosc = InputBox("Repeats", "How many repeats of script?", "", "")
$backspace = InputBox("Repeats", "How many commands 2?", "", "")
for $i= 1 to $ilosc
Commdand1
Commdand1
Commdand1
    for $i= 1 to $backspace
Command2
    next
Commdand1
Commdand1
next
MsgBox( 0, "Done", "Done")

and script repeats Commands2 (for $i= 1 to $backspace) but next all script (for $i= 1 to $ilosc) doesn't repeat despite appearing MsgBox.

What's wrong with the code?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...