Sign in to follow this  
Followers 0
gcue

two "Not FileExists"

5 posts in this topic

instead of doing a nested if statement.

can this be done in one line?

If Not FileExists("C:\Program Files\NetSupport Manager\PCICTLUI.EXE") Or Not FileExists("C:\Program Files\Netsupport\NetSupport Manager\PCICTLUI.EXE") Then

doesnt seem to work... =/

Share this post


Link to post
Share on other sites



If (...) Or (...) Then

perfect thanks!!

Share this post


Link to post
Share on other sites

Could be me but both work the same. The () do not really have a function here.

One thing you forgot to mention is what you want to test for.

Should the IF be true when one of the files doesn't exists -> Use OR

Should the IF be true when both of the files doesn't exists -> Use And

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Not(A) OR Not( B) <=> Not(A AND B)

Edited by trung0407

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  
Followers 0