title: C# Error with 'continue'
body: <p>I'm trying to use an if statement with a bool that will make it that if a code runs once it will not run again. Here is the code I am using.</p>
  
  <pre><code>int random = Program._random.Next(0, 133);
  
  if (random &lt; 33) {
     bool done = false;
  
     if(done)
     {
        continue; // Error is shown for this statement
     }
  
     Console.WriteLine("Not done!");
     done = true;
  }
  </code></pre>
  
  <p>The error that Visual Studio is displaying is: "No enclosing loop out of which to break or continue".</p>