Sign in to follow this  
Followers 0
Bi0haZarD

Stupid Question regarding <> and OR

3 posts in this topic

ok.. i have my script read from a text file a certain area... now.. i want some error control.. so if the number that it reads is not equal to the 3 numbers i have in my script i want it to display an error and exit..

heres the section of script i have now..

and yes $inc is being parsed from the file correctly.

If $inc <> "373" OR $inc <> "251" OR $inc <> "ABC" Then
    MsgBox(0,"Error","The value "&$inc&" is not refrenced in the verify script")
    Exit
EndIf

any ideas?

Share this post


Link to post
Share on other sites



Your test is always true... you probably need:

If $inc <> "373" And $inc <> "251" And $inc <> "ABC" Then


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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ahh thanks can't believe i over looked that.

thanks :P

works perfectly now.

Edited by Bi0haZarD

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