Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The Boolean operators are supported?
I need evaluate the following expression:
A>B and B>C

Thanks
Tomaso
Posted
Comments
Sergey Alexandrovich Kryukov 2-May-13 10:56am    
What prevents you from just reading MSDN help?
And those operators are not Boolean, they have Boolean return type, don't mix them up. Boolean operator are OR, END, etc.
—SA

The operators are supported:

VB
If A > B And B > C Then
    ' Both parts of the condition evaluated - probably not what you want.
End If


If A > B AndAlso B > c Then
    ' B > C only evaluated if A > B, short circuit - probably what you want.
End If


The AndAlso is equivalent to && in c#, And is equivalent to & if that makes the comments clearer.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-May-13 10:57am    
Sure, a 5.
—SA
Yes they are:
http://msdn.microsoft.com/en-us/library/a1w3te48%28v=vs.80%29.aspx[^]

Following the links in that document should answer your question. And always remember to read the documentation ;-)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-May-13 10:57am    
A 5, especially for the last sentence.
—SA
Kenneth Haugland 2-May-13 11:00am    
The documentation is a greatly underestimated source of information, so it seems anyway ;-)
Sergey Alexandrovich Kryukov 2-May-13 11:13am    
Well, by many our inquirers... in everyday work, people almost never asked my such questions... :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900