| Start | ||||||||
|---|---|---|---|---|---|---|---|---|
OrElse Usage |
||||||||
AndAlso Usage |
||||||||
Avoiding NullReferenceException OrElseAndAlsoVisual Basic 14.0 introduced the null conditional operator (opens new window), allowing to rewrite the functions in a cleaner way, mimicking the behavior of the Syntax
Parameters
Remarks'AndAlso' and 'OrElse' are ShortCircuiting operators that means that the execution is shorter because the compiler doesn't evaluate all the expressions in a boolean comparision if the first one provides the desidered result. |
Read Article
https://develop.horje.com/learn/1434/reference