Jump to content

Evaluation error?


Recommended Posts

Hopefully an easy one...

I know the below is comparing integers and strings but shouldn't they both evaluate to false?

If 0 = "bogus" then MsgBox(0,"","Shouldn't this evaluate to false?  Why does this evaluate to true?")
If 1 = "bogus" then MsgBox(0,"","This does evaluate to false")
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...