gtype Posted May 4, 2008 Posted May 4, 2008 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 Nextbut 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
ChrisL Posted May 4, 2008 Posted May 4, 2008 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 [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
ChrisL Posted May 4, 2008 Posted May 4, 2008 Or a Do loop $iCnt = 0 Do if not whatever Then somecrap $limit += 1 ContinueLoop EndIf $iCnt +=1 Until $iCnt = $limit [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
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