vendredi 16 juillet 2021

how to text multiple if statements?

How would you text the && totalScoreBA < bida in a different statement has its not always true totalB == 0? Need to text for totalScoreBA < bida without totalB == 0

       if (totalB == 0 && totalScoreBA < bida){
                scoreA2 = (bida * -1);
                A1 += scoreA2;

                String scoreBoardA = String.valueOf(A1);
                String scoreBoardB = String.valueOf(B1);
                Intent i = new Intent(bid_activity.this, 
       score_activity.class);
                i.putExtra("Team A", nameA);
                i.putExtra("Team B", nameB);
                i.putExtra("ScoreA", scoreBoardA);
                i.putExtra("ScoreB", scoreBoardB);
                // starting the activity
                startActivity(i);
            }
        if(totalScoreBA >= bida){

            A1 += totalScoreBA;
            B1 += totalScoreBB;

            String scoreBoardA = String.valueOf(A1);
            String scoreBoardB = String.valueOf(B1);
            Intent i = new Intent(bid_activity.this, 
    score_activity.class);
            i.putExtra("Team A", nameA);
            i.putExtra("Team B", nameB);
            i.putExtra("ScoreA", scoreBoardA);
            i.putExtra("ScoreB", scoreBoardB);
            // starting the activity
            startActivity(i);

        } 

Aucun commentaire:

Enregistrer un commentaire