function updateSuppressCheck(){
  if(user != null){
    updateUserToDB();
  } else {
    addUserToDB();
  }
}
//case it updates or adds a new user to the database.
case it updates or adds a new user to the database.
case it updates or adds a new user to the database .
function updateSuppressCheck(){
  if(user != null){
    updateUserToDB();
  } else {
    addUserToDB();
  }
}
function updateSuppressCheck ( ) { if ( user != null ) { updateUserToDB ( ) ; } else { addUserToDB ( ) ; } }
case it updates or adds a new user to the database.
case it updates or adds a new user to the database .