VB gehört verboten!
But AndAlso and OrElse have some properties that enhance your code in ways that VB 6 can’t match. They offer advantages in two general categories:
- You can avoid executing part of a logical expression to avoid problems.
- You can optimize code by not executing any more of a compound expression than required.
Eine Sprache, die solche Konstrukte überhaupt benötigt, gehört aus meiner Sicht schlichtweg verboten!