What type of logic do I use in this situation?
<p>I'm currently coding a console application and all I need to do is to add a menu. I understand basic if statements. How can I transfer the user to different part of the programs? Sort of like this : </p>

<pre><code>if (menuoption == 1)
{
    // Transfer to menu option 1
}
</code></pre>

<p>What type of logic do I need to use in this circumstance ?</p>