Is there a conditional ternary operator in VB.NET?
Asked 07 September, 2021
Viewed 1.5K times
  • 58
Votes

In Perl (and other languages) a conditional ternary operator can be expressed like this:

my $foo = $bar == $buz ? $cat : $dog;

Is there a similar operator in VB.NET?

4 Answer