title: Android if no checkbox is checked
body: <p>I need your help. I have several checkboxes and I want when no checkbox is checked to display a message informing the user to choose at least 1 checkbox by the Toast view. Here is my code, now if no checkbox is checked it displays the message but after that it displays the other message.</p>
  
  <pre><code>if(ketch.isChecked()==true){
  
                      result2.append("Ketchup"+"\n");
                  }
                  if(may.isChecked()==true){
  
                      result2.append("Mayonnaise"+"\n");
                  }
                  if(mus.isChecked()==true){
  
                      result2.append("Mustard"+"\n");
                  }
                  else{
  
  
                      Toast.makeText(MainActivity.this,"Please choose at least 1 topping!",Toast.LENGTH_SHORT).show();
  
                  }
  
  
  
  
  Toast.makeText(MainActivity.this, "Name: "+name.getText()+"\n"+"Phone: "+phone.getText()+"\n"+"Address: " +address.getText()+"\n"+"Shape: "+sh.getText()+"\n"+"Cheese: "+ty.getText()+"\n"+"Toppings: "+"\n"+result.toString()+"Sauce: "+"\n"+result2.toString(), Toast.LENGTH_LONG).show();
  
  
          }
          });
  
      }
  </code></pre>