title: multiple if statements and a loop
body: <p>I have a logical problem. I will provide pseudo code since the real code isn't all that readable. I want to only enter one of the instructions, and if none of the instructions are reachable I want the function to break out from the loop.</p>
  
  <p>I'm pretty new to programming so any help is appreciated.</p>
  
  <p>edit:  In every iteration I want to only reach one of the conditions. Since there is a loop going on for a longer time I want to be able to reach the same / other instructions for every iteration</p>
  
  <pre><code>while(true){
       if(condition){ // Instruction 1
          do stuff
      }else{
          do stuff
      }
      if(condition){ // Instruction 2
          do stuff
      }else{
          do stuff
      }
      if(condition){ // Instruction 3
          do stuff
      }else{
          do stuff
      }
  
      if(condition){ // Instruction 4
          do stuff
      }else{
          do stuff
      }
  
      if(none condition){
          break;
      }
  }
  </code></pre>