Jump to content

For loop


Recommended Posts

Hi,

I am looping some value in a for loop to get the other value. For example,

For condition to varibale step +1

checking a contion here

if the condition fails i have to loop for the next value

if the condition pass then i have to continue

Next

Thanks.

Link to comment
Share on other sites

Hi,

I am looping some value in a for loop to get the other value. For example,

For condition to varibale step +1

checking a contion here

if the condition fails i have to loop for the next value

if the condition pass then i have to continue

Next

Thanks.

$loop = 0

While 1

If yada = yada then Exitloop

$Loop += 1

Wend

OR

for $I = 0 to 1000

If yada = yada then Exitloop

next

=)

Edited by Szhlopp
Link to comment
Share on other sites

$loop = 0

While 1

If yada = yada then Exitloop

$Loop += 1

Wend

OR

for $I = 0 to 1000

If yada = yada then Exitloop

next

=)

Hi,

I am calling a secin() function

In that i am using a for loop

For $i = 1 to $counter step +1

some code ........

.................

In this counter values varies according to previous fucntion

I am checking a condition inside the for loop

if $var = 0 then have increase the $i count and start from the for loop ( How to go to top of for loop and increase the count)

if $var = 1 then continue

Next

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...