Alternative way of writing If conditions
===

I was wondering are there any alternative or elegant way of writing if conditions, if there

are more conditions that has to be checked.

Example,

    if(cond1){
       if(cond2){
          if(cond3){
             if(cond4){
                //all conditions are checked
                 flag = true;
             }
          }
       }
    }