-
|
I’m trying to make an if/else statement to change the background on the floorplan depending on the actual temperature compared to the setpoint. I can change the colour on if I cut the if/else part so I believe that the error is in the syntax of the if/else statement. I’ve tried different variants with or without { } : ; % but no luck so far. CSS-file And resulting floorplan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
You'll need to adjust the syntax a bit: See the Javascript one here: I'll suggest you to check our discussions and examples? There's plenty of if-else statements, so I'm wondering if you didn't search at all 😄 . A simpel search on There's a normal JS statement here: Here's another way you can do the if-else statement: Try and give the search function another visit, if you're still missing examples. |
Beta Was this translation helpful? Give feedback.


You'll need to adjust the syntax a bit: See the Javascript one here:
https://www.w3schools.com/js/js_if_else.asp
I'll suggest you to check our discussions and examples? There's plenty of if-else statements, so I'm wondering if you didn't search at all 😄 . A simpel search on
elsegives plenty of results.There's a normal JS statement here:
#68
Here's another way you can do the if-else statement:
#324
Try and give the search function another visit, if you're still missing examples.