Maffe811 Posted July 5, 2011 Posted July 5, 2011 I'm just wondering if theese two code snippets are identical. The first code checks $X then if it's true it checks $Y. Does the second code do the same? Or does it check both ? Cause i dont want it to check $Y if $X = False If $X = True then If $Y = False then Exit EndIf EndIf And If $X = True and $Y = False then Exit Did anyone get this or did my explanation suck ? [font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]
monoscout999 Posted July 5, 2011 Posted July 5, 2011 (edited) both do the same. also this.If $x and not $Y then exitEDITED: Bout to Both Edited July 5, 2011 by monoscout999
timmalos Posted July 5, 2011 Posted July 5, 2011 Ye, both are same. If $X = True and $Y = False then Exit If $X is false, $Y will not be check.
Maffe811 Posted July 5, 2011 Author Posted July 5, 2011 Thanks, all i needed to know [font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]
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