title: If statement, Android Studio with Firebase
body: <p>So I am trying to send data back to my Firebase Database with only users that have signed up and logged in. I have written a code to send the data but i am trying to write an else if statement that a message in this case a Toast appears if they have not signed up. I am struggling to write a code for that.</p>
  
  <pre><code>private void sendScore() {
  
      String userName = name.getText().toString();
      String userScore = BenchScore.getText().toString();
  
      if(!TextUtils.isEmpty(userName) &amp;&amp; !TextUtils.isEmpty(userScore)) {
  
          String id = databaseReference.push().getKey();
  
          ScoreProfile scoreProfile = new ScoreProfile(id, userName, userScore);
  
          databaseReference.child(FirebaseAuth.getInstance().getUid()).setValue(scoreProfile);
          name.setText("");
          BenchScore.setText("");
  
      } else if(FirebaseAuth.getInstance().) {
          Toast.makeText(Score.this, "You need to sign up in order to use this", Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>