title: How to end a (double data type) input loop when 0 is inputed?
body: <p>Basically, I want the user to be able to enter in a decimal number and then be reprompted as many times as they want until they enter in the number zero to exit the loop. rp is a double data type. However, I get an error that states "double cannot be converted to boolean"     </p>
  
  <pre><code>while (true){
      rp = Double.parseDouble(JOptionPane.showInputDialog("Enter in double:"));
      if (rp = 0.0){
          break;
      }
  }
  </code></pre>