ACalcutt Posted August 18, 2005 Share Posted August 18, 2005 (edited) is there any way to look for multiple conditions in a IF statementlikeex.IF $test1 = 1 & $test2 = 1 Then msgbox(0, "", "both")ENDIFi know i could do IF $test1 = 1 Then IF $test2 = 1 Then msgbox(0, "", "both") ENDIFENDIFbut i was wondering if there was an easier way...like my example (that example didn't work ) Edited August 18, 2005 by ACalcutt Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature Link to comment Share on other sites More sharing options...
Developers Jos Posted August 18, 2005 Developers Share Posted August 18, 2005 IF $test1 = 1 And $test2 = 1 Then 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...
/dev/null Posted August 18, 2005 Share Posted August 18, 2005 IF $test1 = 1 & $test2 = 1 ThenJust replace "&" with "AND". CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
ACalcutt Posted August 18, 2005 Author Share Posted August 18, 2005 When all else fails read the manual i guess....i was thinking along the right line....i just never noticed "AND" was an operator.....actually noticed before i saw the post...thanks Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature 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