title: How to stop code running when if statement is not fulfilled
body: <p>I am doing a school project and what i want to add is a line of code that would stop the code from running if age &lt; 15 or if age > 100
  I tried break but it would continue to the next line.</p>
  
  <pre><code>while True:
      try:
  
          age = int(input("How old are you? "))
      except ValueError:
          print("Please enter a valid age!")
  
          continue
      if age &lt; 15:
          print("sorry you are too young to enter the store!")
          break
      if age &gt; 100:
          print("Please come back in the next life") 
          break
      else:
          break
  
      print("")
      print("Welcome to Jim's Computer Store", name)
      print("") while True:                                    
      try:
         cash = int(input("How much cash do you currently have? $"))
      except ValueError:
          print("Please enter a valid value! ")
  
          continue
      else:
          break
  </code></pre>