# Logical and Conditional Operators in VB.Net

This Tutorial is all about Logical and Conditional Operators in VB.Net. In this tutorial you will learn about Logical and Conditional Operators in VB.Net. So lets get Started:

This lesson describes the Logical and Conditional operators.For building complex expressions, VB.NET offers an expected set of Logical and Bitwise Operators as shown below:

1. Not Is performing logical negation on a Boolean expression, or bitwise negation on a numeric expression. ”For a Boolean negation, the data type of the result is Boolean. For a bitwise negation, the result data type is the same as that of expression but if expression is Decimal, the result is Long.”
2. And Is performing a logical conjunction on two Boolean expressions, or a bitwise conjunction on two numeric expressions. ”In a Boolean comparison, the And operator always evaluates both expressions”
3. AndAlso Is performing short-circuiting logical conjunction on two expressions ”In a Boolean comparison, AndAlso performs short-circuiting, which means that if expression1 is False, then expression2 is not evaluated.”
4. Or Is performing a logical disjunction on two Boolean expressions, or a bitwise disjunction on two numeric expression ”In a Boolean comparison, the Or operator always evaluates both expressions”
5. Xor Is performing a logical exclusion on two Boolean expressions, or a bitwise exclusion on two numeric expressions. ”In a Boolean comparison, the Xor operator always evaluates both expressions as there is no short-circuiting counterpart to Xor, because the result always depends on both operands.”

## If you have any comments or suggestions about on Logical and Conditional Operators in VB.Net, please feel free to contact our webpage.

How To Use Conditional Formatting -...
How To Use Conditional Formatting - MS Excel