title: How to add Alert box if Null before re-prompting after a break;
body: <p>I'm a Javascript student and I was wondering the proper syntax to wrap an Alert box around the prompt to say "Hey, wait a minute, you need to complete the form!" and have to click "OK" before it breaks and re-prompts the user for a string or int/float. I know this is redundant but it's just for learning-sake. </p>
  
  <p>Here's what I tried but I get the alert after I enter a string/int/float or if it's null regardless. :(</p>
  
  <pre><code>function breakTest() {
  var loopBoolean = true;
  var myValue = "";
  while(loopBoolean) {
  
    myValue = prompt("Enter data", myValue);
  
      if (myValue==null); 
        alert("Hey, wait a minute, you need to complete the form!"); break;
  
        if (myValue) {
          loopBoolean = false;
          alert (myValue)
        }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And this is the orignial code that works properly without my alert box implementation:</p>
  
  <pre><code>function breakTest() {
  var loopBoolean = true;
  var myValue = "";
  while(loopBoolean) {
  
    myValue = prompt("Enter data", myValue);
  
      if (myValue==null) break;
  
        if (myValue) {
          loopBoolean = false;
          alert (myValue)
        }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks</p>
  
  <p>Cheers,
  Json Segel</p>