Help wanted - Mozilla Conditionals 2 skill test

Hello. I am trying to figure out how to add a conditional that displays the message for the user to turn the machine on. I have linked below what I have so far: https://codepen.io/thenewcoderfromldn/pen/XWXmMYE

The assignment link is the following (Conditions 2): https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals

Any help would be greatly appreciated.

To write a conditional, it should be in the format:
if(condition){
do something
}

Have you been able to solve it?
I had a look at your linked Codepen script; everything is mostly ok… although Codepen wishes you’d keep the JS codes in the “JS” window. :slight_smile:
As it is, your first conditional - if(machineActive) {...} - will return false (which means that whole block of nested if...else if statements won’t execute at all), so what you need is to add a closing else statement which is where the ‘turn-on’ message will be. Easy-peasy.