View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RyanH RyanH is offline
external usenet poster
 
Posts: 586
Default Using Or and And Operators

Can someone tell me why If statement below equates to True? I really need to
know how the computer reads this expression. I thought the computer reads it
from left to right, like this:

True Or False = TRUE
Then
TRUE And False = False

but, the computer says I'm wrong, why? How should I read this If Statement?

If True Or False And False Then
msgbox "Do Something"
End If
--
Cheers,
Ryan