One line if in VB .NET

Use IF().

It is a short-circuiting ternary operator.

Dim Result = IF(expression,<true return>,<false return>)

SEE ALSO:


It's actually pretty simple..

If CONDITION Then ..INSERT CODE HERE..