![]() Multiply AND assignment operator, It multiplies right operand with the left operand and assigns the result to left operandĭivide AND assignment operator, It divides left operand with the right operand and assigns the result to left operand (floating point division)ĭivide AND assignment operator, It divides left operand with the right operand and assigns the result to left operand (Integer division)Įxponentiation and assignment operator. Subtract AND assignment operator, It subtracts right operand from the left operand and assigns the result to left operand Simple assignment operator, Assigns values from right side operands to left side operandĬ = A + B will assign value of A + B into CĪdd AND assignment operator, It adds right operand to the left operand and assigns the result to left operand The truth tables for &, |, and ^ are as follows − Before coming into the bit shift operators, let us understand the bit operations.īitwise operators work on bits and perform bit-by-bit operations. The bit shift operators perform the shift operations on binary values. ![]() We have already discussed the bitwise operators. It determines whether an expression is True. It determines whether an expression is False. This operator does not perform short-circuiting, it always evaluates both expressions and there is no short-circuiting counterpart of this operator. It returns True if both expressions are True or both expressions are False otherwise it returns False. It is the logical as well as bitwise Logical Exclusive OR operator. If a condition is true, then Logical NOT operator will make false. Use to reverses the logical state of its operand. It is the logical as well as bitwise NOT operator. This operator does not perform short-circuiting, i.e., it evaluates both the expressions. If any of the two operands is true, then condition becomes true. It is the logical as well as bitwise OR operator. If both the operands are true, then condition becomes true. It is the logical as well as bitwise AND operator. Assume variable A holds Boolean value True and variable B holds Boolean value False, then − ![]() Like Operator − It compares a string against a pattern.įollowing table shows all the logical operators supported by VB.Net. ![]() If object1 and object2 both refer to the exact same object instance, result is False otherwise, result is True. IsNot Operator − It also compares two object reference variables and determines if two object references refer to different objects. If object1 and object2 both refer to the exact same object instance, result is True otherwise, result is False. Is Operator − It compares two object reference variables and determines if two object references refer to the same object without performing value comparisons. Checks if the values of two operands are equal or not if yes, then condition becomes true.Ĭhecks if the values of two operands are equal or not if values are not equal, then condition becomes true.Ĭhecks if the value of left operand is greater than the value of right operand if yes, then condition becomes true.Ĭhecks if the value of left operand is greater than or equal to the value of right operand if yes, then condition becomes true.Ĭhecks if the value of left operand is less than or equal to the value of right operand if yes, then condition becomes true.Īpart from the above, VB.Net provides three more comparison operators, which we will be using in forthcoming chapters however, we give a brief description here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |