So I can't seem to get an else if to work right.

What I've been doing is writing a unit converter to try and teach myself the basics of programming, I'm kind of new to it. So new as to say this is actually my first working while loop. So I've been writing the code, and then doing as a friend who is somewhat more experienced at programming has told me to do. Which is separate said code out into methods. I used the VS2010 automatic method making thing for this, because I didn't know how to do it myself. The full source code in question is here <http://pastebin.com/9mZPPtWr> the problem bit is this one 

` 

```
      else if (type == "cups")

      {

        Console.WriteLine("Enter a number of liters to be converted into cups.");
        amount = Convert.ToDouble(Console.ReadLine());
        Console.WriteLine(cupsTolitConverter.Convert(amount) + " cups to said number of liters.");

      }`

```

I entered cups into the console, and despite every other entry/imput working fine and the loop looping back to the selection bit each time, I can't seem to get that section of code to work. It just won't display, I've been working on it for an hour now, and I starting to think I'm missing something incredibly obvious, or something incredibly arcane. Also I have a lot of repeated code and I was wondering if there was a way to simplify that down to less repeats.

Thanks, and I hope that was readable and understandable. Even if my code probably isn't. Also I got the starting code(the top bit) from Accelerated C#. Will elaborate more on my question if needed.
['https://Stackoverflow.com/questions/12100977', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1620762/']
Line 141 of the code you page linked to is this:

```
141 - done

```

You are not going anything with that variable and you do not end with a semi-colon.

*(Since you are not using a Visual Studio editor, i suspect the program was working, then you introduced a compile time error. Now each time you run the program, you are possibly running an older version.
Hopefully, you can download and use Visual Studio Express which will increase learning time and decrease confusion time. Good luck)*
My suggestion: use Nunit and write an unit test for it. Nunit will give expected and actual value and you'll see why this isn't working.