VB.NET: One line IF statement

1145890 pts.
Tags:
VB.NET
Hello experts, new to the site. My apologizes for the brief question but I'm using VB.NET. Would it be possible for me to do a one line IF statement? Thanks so much.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • CharlieBrowne
    Have you tried it and failed? If so, what was the error message?
    62,385 pointsBadges:
    report
  • ToddN2000
    Are you looking for something like?
    If x = 3 Then y = 4 Else y = 0

    One line if statements may be hard to follow when placed in code.
    Why do you want to limit it to one?
    133,645 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: