ahha 2 Posted January 6, 2007 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" Thanks. $x="K" ;this works If $x = "0" Then MsgBox(0+262144, "Debug:", "In If $x = 0 "&$x) EndIf ;this does NOT work If $x = "0" Or "1" Then MsgBox(0+262144, "Debug:", "In If $x = 0 or 1 "&$x) EndIf Share this post Link to post Share on other sites
Helge 3 Posted January 6, 2007 If $x = "0" Or $x = "1" Then MsgBox(0+262144, "Debug:", "In If $x = 0 or 1 "&$x) EndIf Share this post Link to post Share on other sites
ahha 2 Posted January 6, 2007 If $x = "0" Or $x = "1" Then MsgBox(0+262144, "Debug:", "In If $x = 0 or 1 "&$x) EndIf UGH. Thanks, for some reason I thought you could group the criteria. Share this post Link to post Share on other sites
Richard Robertson 186 Posted January 6, 2007 I've never seen a single language that did not require an explicit equation when using and and or. Share this post Link to post Share on other sites