If xxx or yyy {

Hi there,

I was not able to find any example on “if or”.

Like:
if(Switch1.state == ON or Switch2.state == ON) {
do something
}

Is this possible?

Use || instead of or

Also, I would suggest using openHAB designer to edit config files, since it will check syntax for you.

Hi Igor,

great - thanks.
Actually I use openHAB Designer, that’s why I found “or” is wrong.
But there is not auto correction in OH Designer :wink: