title: How to break from loop by the cancel button in inputbox
body: <p>The following VB script check the valid IP by Test function</p>
  
  <p>if  we get OK from the test function then
  We break from loop ValidIP=OK
  If not the inputBox ask the question until ValidIP=OK</p>
  
  <p>But sometimes I want to exit from loop by cancel button</p>
  
  <p>How to break loop by the cancel button (in order to set the ValidIP as OK)</p>
  
  <pre><code>Do Until ValidIP=OK
      IPrange=InputBox("Enter IP address range",,"172.17.202.1-10,192.9.200.1-100")
      Test IPrange, strPattern 
  Loop
  </code></pre>