Sign in to follow this  
Followers 0
mojomatt

Evaluation error?

2 posts in this topic

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")

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