MattHiggs Posted May 19, 2017 Share Posted May 19, 2017 (edited) Ok. So while I am pretty sure this is possible, I wanted to confirm and possibly see and example rather than just play trial and error. Is there a way to group expressions in an if statement similarly to how one can group mathematical operations so that a particular set of operations are performed first and the result of said operation can then be used with the third expression. For example, say I had the following if statement (pseudocode): For $i = 1 to $cmdline[0] step 1 If ($cmdline[1] = "/r" or $cmdline[1] = "-r" ) And $i = 1 then ;Do something here if the first argument is either "/r" or "-r" and if $i is equal to one Endif Next Would it be possible to do something like this using a single if statement, or would I be forced to nest an if statement as well? Thanks in advance. Edited May 19, 2017 by MattHiggs Link to comment Share on other sites More sharing options...
Developers Jos Posted May 19, 2017 Developers Share Posted May 19, 2017 That should work fine. Jos MattHiggs 1 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...
MattHiggs Posted May 19, 2017 Author Share Posted May 19, 2017 56 minutes ago, Jos said: That should work fine. Jos Thanks a ton. 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