Jump to content

help with if..and..or


Recommended Posts

  • Developers

I'm confused. Logically wouldn't just this be sufficient?

Correct, the extra test for all 4 vars being true doesn't serve any purpose.

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

I'm confused. Logically wouldn't just this be sufficient?

if ($var1 and $var2) or ($var3 and $var4) then
    $result=True
EndIf
msgbox (0,"",$result)[/autoit]

When would this statement ever be false and this statement true: ($var1 and $var2 and $var3 and $var4)?

:) yes you have right.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...