Jump to content

Recommended Posts

Posted

Ok, so what i want to do is this. For example:

For $i = 0 to ($limit - 1)
    if not whatever Then
        somecrap
        $limit += 1
        ContinueLoop
    EndIf
Next

but i think that the $limit in the for loop only gets evaluated once. is it possible to make the for loop evaluate the expression at every pass? thank you

Posted

You don't want a for loop

$iCnt = 0
While 1
    if not whatever Then
        somecrap
        $limit += 1
        ContinueLoop
    EndIf
    $iCnt +=1
    If $iCnt = $limit then ExitLoop
WEnd

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
  • Recently Browsing   0 members

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