title: Can't get list to another else if block
body: <p>My goal is to get the list ,StudentFirstName working into the else if statement below. There is more code but I don't know if it is relevant for this, so just ask and I'll post the rest. I'm really unsure what to do next as there seems to be little info on the specifics of lists and their limits, just started btw so I'd appreciate the help.</p>
  <pre><code>            if (command == &quot;Add&quot; || command == &quot;add&quot;)
              {
  
                  List&lt;string&gt; StudentFirstName = new List&lt;string&gt;();
                  List&lt;string&gt; StudentLastName = new List&lt;string&gt;();
                  List&lt;int&gt; StudentID = new List&lt;int&gt;();
                  string studentfirstname;
                  string studentlastname;
                  int studentid;
  
                  Console.Write(&quot;Enter first name : &quot;);
                  studentfirstname = Console.ReadLine();
                  Console.Write(&quot;Enter last name : &quot;);
                  studentlastname = Console.ReadLine();
                  Console.Write(&quot;Enter student ID : &quot;);
                  studentid = Convert.ToInt32(Console.ReadLine());
  
                  StudentFirstName.Add(studentfirstname);
                  StudentLastName.Add(studentlastname);
                  StudentID.Add(studentid);
                  Console.WriteLine(&quot;\nInfo has been saved!&quot;);
                  mainMenu();
              }
              else if (command == &quot;Remove&quot; || command == &quot;remove&quot;)
              {
                  foreach (string student in StudentFirstName)
                  {
                      Console.WriteLine(student);
                  }
              }
  </code></pre>