title: Text-based Game non branching if statements
body: <p>I'm working on a text based game in C++. I'm wondering how would you go into different events without nesting so many if statements. An example of what i'm talking about is...</p>
  
  <pre><code>if ( userChoice == 1 )
  {
       //do something
       cout &lt;&lt; "Pick 1 , 2, or 3" &lt;&lt; endl;
       if ( userChoice == 1 )
       {
             cout &lt;&lt; "pick 1, 2, 3/ some storry line" &lt;&lt; endl;
             if ( userChoice == 3 )
             {
                  cout &lt;&lt; " storyline...123...." &lt;&lt; endl;
                  if ( userChoice == 2 )
                  {
                         //etc
                  }
             }
       }
  }
  </code></pre>
  
  <p>How would I do this concept without branching the if statements?</p>