Several 'if' statements can be consolidated by separating their conditions with a boolean short-circuit operator.

The following code snippet illustrates this rule :

if (condition1) { // Non-Compliant
  if (condition2) {
    doSomething();
  }
}
// Should be replaced by:
if (condition1 && condition2){ // Compliant
  doSomething();
}