I have 4 statements, I only want to check statement 2-4 if statement 1 is true the following is the pseudo code of what I am trying to achieve
if (statement 1) {
  if (statement 2 or statement 3 or statement 4){
    do something()
  }
}
I was wondering whether the following code will do the same
if(s1 && s2 || s3 || s4) {
  doSomething();
}
or if I have to do it like
if (s1) {
  if (s2 || s3 || s4) {
     doSomething();
  }
}
 
     
     
    