AnsAlso - VB.Net

Performs short-circuiting logical.
A logical operation is said to be short-circuiting if the compiled code can bypass the evaluation of one expression depending on the result of another expression.
This means if the first expression is False the expression returns False and does not evaluated the second expression.


ExpressionReturnedNotes
True AndAlso TrueTrue 
True AndAlso FalseFalse 
False AndAlso TrueFalseTrue is not evaluated
False AndAlso FalseFalseFalse is not evaluated
Not (True AndAlso True)False 
Not (True AndAlso False)True 
Not (False AndAlso True)True 
Not (False AndAlso False)True 


© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext