If/else , booleans

If / else , concise form , multiple boolean initial if conditional ?

#GreysonCassidy :us:

Not sure what you’re asking here. You can test multiple conditions in an if statement using logical operators such as && and ||.

let isLightOn = false;
let isDoorOpen = true;

if (isLightOn || isDoorOpen) {
  console.log("Please make sure the light is off and the door is closed when exiting the room.");
} else {
  console.log("Thank you for turning off the light, and closing the door.");
}