kkelley Posted August 21, 2014 Share Posted August 21, 2014 If $browser = "Internet Explorer" && $server = "DEV '.33'" Then _IEDEV() will the && operation work? I am trying to get this to look at two separate combo-boxes and using the data to run the function. Link to comment Share on other sites More sharing options...
Solution Jfish Posted August 21, 2014 Solution Share Posted August 21, 2014 Try "AND" instead of && kkelley 1 Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 22, 2014 Moderators Share Posted August 22, 2014 In fact, if you are using the full SciTE installation, it should come up with a warning just for trying to use the double &. kkelley 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
kkelley Posted August 22, 2014 Author Share Posted August 22, 2014 It was giving me the error on the $browser on the dollar sign, instead of on the && operator. Thanks for the help! Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2014 Developers Share Posted August 22, 2014 (edited) It was giving me the error on the $browser on the dollar sign, instead of on the && operator. Thanks for the help! It will only give an error on $browser when that's not declared yet. It does give an Syntax error on && : "test.au3"(1,13) : warning: $browser: possibly used before declaration. If $browser = ~~~~~~~~~~~~^ "test.au3"(1,36) : error: syntax error If $browser = "Internet Explorer" && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "test.au3"(1,46) : warning: $server: possibly used before declaration. If $browser = "Internet Explorer" && $server = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "test.au3"(1,13) : error: $browser: undeclared global variable. If $browser = ~~~~~~~~~~~~^ "test.au3"(1,46) : error: $server: undeclared global variable. If $browser = "Internet Explorer" && $server = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ test.au3 - 3 error(s), 2 warning(s) Jos Edited August 22, 2014 by Jos 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