jeudi 29 mars 2018

Using AND on Android

I have an if statement the check if all item is selected or not (Android )

        if(region_id == null && City == SelectAll && Distric == SelectAll && itemid== SelectAll){ 
         // DO something 
        }
else{    
            if(City == SelectAll && Distric == SelectAll && itemid== SelectAll){

         // DO something 

        }else
      if(Distric == SelectAll && itemid == SelectAll)){
       // DO something 


    }else{
    // DO something 
    }

My issue that if dos not working

Aucun commentaire:

Enregistrer un commentaire