View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
Logical operators Logical operators are used to perform logical operations such as AND, OR, NOT on one or more expressions. www.ustudy.in
AND This operator is used as a conjunction of two conditions. The result of the AND operation is True only if both the conditions are true. Syntax: Result = Expression1 AND Expression2 www.ustudy.in
Example of XOR Operator Dim a, b, c As Integer Dim d As Boolean a = 10 b = 20 c = NOT (a>b) ‘Returns True’ c = NOT (a<b) ‘Returns False’ www.ustudy.in
AndAlso This operator is same as AND operator but if the first condition is false then the second condition is not checked and the result is false. Syntax: Result = Expression 1 AndAlso Expression2 www.ustudy.in
OrElse This operator is same as OR operator but if the first condition is true then the second condition is not checked and the result is True. Syntax: Result = Expression 1 OrElse Expression2 www.ustudy.in
Concatenation operators Concatenation operators are used to join two string values. & and + are the two concatenation operators available in VB.NET. The operator & is used to concatenate two strings and + is used to add two numbers and concatenate two strings. www.ustudy.in