Jump to content
Sign in to follow this  
Maffe811

Quick question.

Recommended Posts

Maffe811

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]

Share this post


Link to post
Share on other sites
monoscout999

both do the same. also this.

If $x and not $Y then exit

EDITED: Bout to Both :)

Edited by monoscout999

Share this post


Link to post
Share on other sites
timmalos

Ye, both are same.

If $X = True and $Y = False then Exit

If $X is false, $Y will not be check.

Share this post


Link to post
Share on other sites
Maffe811

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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×