title: Break out of if else loop without breaking out of while loop
body: <p>I was making an program in Python and I needed to break out of if else lop without breaking out of while loop.</p>
  <p>Current code (incomplete code just for example. Not full code.):</p>
  
  <pre><code>class foo:
    def __init__(self, time1, link)
          while self.isItNow == False:
              self.current_time = self.now.strftime(&quot;%H:%M&quot;)
              print(self.current_time)
              if str(self.current_time) == self.time1:
                  webbrowser.open(self.link, new=1)
                  self.isItNow = True
              else:
                  print(&quot;Current Time =&quot;, self.current_time,&quot;. Retrying again in 5 seconds&quot;)
                  time.sleep(5)
                  break
  </code></pre>
  <p>I wanted to break the else and start the if loop again but I can't do it because it breaks out of the while loop.</p>
  <p>Thanks in advance!!!!</p>