C# snytax help

I can do this in VB but need it in C#.
I want to use the "if else" structure for this:

    if (RB1I5.Checked)
      {
      }

    if (RB2I8.Checked)
      {
      }

    if (RB3F3.Checked)
      {
      }

    else
      {
      }
LVL 16
MikeMCSDAsked:
Who is Participating?
 
surajgupthaCommented:
   if (RB1I5.Checked)
      {
      }

   else if (RB2I8.Checked)
      {
      }

else    if (RB3F3.Checked)
      {
      }

    else
      {
      }
0
 
surajgupthaCommented:
or am i missing understanding your question?
0
 
MikeMCSDAuthor Commented:
no, that did the trick, thank you . .
this C# syntax is driving me fking nuts.
I wish I could just keep using VB but most companies
use C# and I'm forcing myself to learn it.
0
 
surajgupthaCommented:
Its not that hard. Will just take a couple of weeks to get used to it, once you get used to it, it is fun :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.