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.
Expression | Returned | Notes |
True AndAlso True | True | |
True AndAlso False | False | |
False AndAlso True | False | True is not evaluated |
False AndAlso False | False | False 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