Jump to content
Sign in to follow this  

Or function problem

Recommended Posts

Okay, one of those days where you narrow it down till you're in a corner and scratching your head.

What am I doing wrong here? I'm trying to use the Or in the second example and with $x="K" it says it's a "0" Or "1"



;this works

If $x = "0" Then

MsgBox(0+262144, "Debug:", "In If $x = 0 "&$x)


;this does NOT work

If $x = "0" Or "1" Then

MsgBox(0+262144, "Debug:", "In If $x = 0 or 1 "&$x)


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...