VB.NET Logical Operators

Quick chart to clarify which VB.NET operators one should use always.*

Never Use Instead, Always Use:
IIf(x, y, z) If(x, y, z)
And AndAlso
Or OrElse


* Always means “pretty much always.” There may be some very rare, strange cases to use the “never use” items.

** Logical Awesome image copied from this site.

This entry was posted in Programming, VB. Bookmark the permalink.