zasxes Posted March 14, 2004 Share Posted March 14, 2004 I want to do something like this but it errors out ;$A is set above WHILE $b < 10 JUMPOUT() ;Do Stuff not listed $b=$b+1 WEND FUNC JUMPOUT() IF $A=1 Then ;Do Stuff not listed EXITLOOP ENDIF ENDFUNC Link to comment Share on other sites More sharing options...
Developers Jos Posted March 14, 2004 Developers Share Posted March 14, 2004 (edited) You can only do an exitloop within a loop. You are trying to do an exitloop in a function... someting like this would work: $A is set above While $B < 10 if JUMPOUT() = 1 the ExitLoop ;Do Stuff not listed $B=$B+1 Wend Func JUMPOUT() If $A=1 Then ;Do Stuff not listed Return ( 1) EndIf return (0) EndFunc ;==>JUMPOUT Edited March 14, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
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