-TS- Posted December 21, 2003 Share Posted December 21, 2003 am i setting this up right??? Select Case $n1 = "x" and $n2 = "x" and $n3 = 1 Dofunc1() Case $n1 = "x" and $n2 = "x" and $n3 = 2 Dofunc2() EndSelect func1 MsgBox(0, "", "1") endfunc func2 MsgBox(0, "", "2") endfunc thx Link to comment Share on other sites More sharing options...
Administrators Jon Posted December 21, 2003 Administrators Share Posted December 21, 2003 Looks good to me. I'd probably put the AND in capitals for easy reading but doesn't make much of a difference Oh, don't put "dofunc1()" just do "func1()" Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
-TS- Posted December 21, 2003 Author Share Posted December 21, 2003 OO right on thx Jon Link to comment Share on other sites More sharing options...
-TS- Posted December 21, 2003 Author Share Posted December 21, 2003 (edited) hmmm still dont work with func1() Edited December 21, 2003 by -TS- Link to comment Share on other sites More sharing options...
Developers Jos Posted December 21, 2003 Developers Share Posted December 21, 2003 (edited) -TS-, I believe you have to use a RETURN to close the FUNC properly. jos func1 MsgBox(0, "", "1") return endfunc Edited December 21, 2003 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...
-TS- Posted December 21, 2003 Author Share Posted December 21, 2003 (edited) Select Case $n1 = "x" and $n2 = "x" and $n3 = 1 func1(); < dont get past here Case $n1 = "x" and $n2 = "x" and $n3 = 2 func2() EndSelect func1 MsgBox(0, "", "1") endfunc func2 MsgBox(0, "", "2") endfunc Edited December 21, 2003 by -TS- Link to comment Share on other sites More sharing options...
Administrators Jon Posted December 21, 2003 Administrators Share Posted December 21, 2003 Select Case $n1 = "x" AND $n2 = "x" AND $n3 = 1 func1() Case $n1 = "x" AND $n2 = "x" AND $n3 = 2 func2() EndSelect Func Func1() MsgBox(0, "", "1") EndFunc Func Func2() MsgBox(0, "", "2") EndFunc Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
w_sp8er Posted December 22, 2003 Share Posted December 22, 2003 Jon is correct. Link to comment Share on other sites More sharing options...
-TS- Posted December 22, 2003 Author Share Posted December 22, 2003 yea that looks right, you need to update the help file 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