I think this may be the last operator that I really miss in VB from my curly brace language experience. Although, I have to admit, I wouldn’t have missed it all that much if they never added it. There just isn’t a whole lot of use for it.
However, the Ternary operator is a REALLY nice feature to have available to you when you do need it. It’s another one of those language features that falls under, “Just because it is there doesn’t mean you have to use it.”
If you’ve ever run into a situation where you just need a simple evaluation and assign a variable based on it. Like this: (more…)