0

In C# I can do this:

string outcome = (success?"succeeded":"failed")

But in VB.NET is this syntax the only equivalent operation?:

If (success) Then
    outcome = "succeeded"
Else
    outcome = "failed"
End If
1
  • Knew there had to be a dupe, nice one @Magnus Commented Apr 13, 2018 at 15:13

1 Answer 1

2
outcome = If(success,"succeeded","failed")
Sign up to request clarification or add additional context in comments.

1 Comment

Beat me to it - but just an addition, C to VB converter will really help you along your way!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.