Page 1 of 1
Cannot have 4 "OR" statements in one "IF"?
Posted: Tuesday 22 December 2015 17:47
by elgarne
Hi,
If I do what is depicted in the attached figure, I cannot save my event and nothing shows up in the logs. Any reason for that?
Thanks.

Re: Cannot have 4 "OR" statements in one "IF"?
Posted: Tuesday 22 December 2015 18:42
by Egregius
Try lua or php, you'll have endless possibilities.
Re: Cannot have 4 "OR" statements in one "IF"?
Posted: Tuesday 22 December 2015 18:44
by elgarne
Thanks. But any reason for that?
BTW, if some moderator could move the thread in the events section, I'll be grateful.
Re: Cannot have 4 "OR" statements in one "IF"?
Posted: Thursday 24 December 2015 12:28
by mrf68
I see a + sign in front of the If. Do you have an elseif statement after the first if? If not, choose under Control the If statement without the + sign and try again.

- 20151224 elseif.jpg (7.9 KiB) Viewed 1691 times
I tried this one and it works.

- 20151224 ororor.jpg (26.91 KiB) Viewed 1690 times
Re: Cannot have 4 "OR" statements in one "IF"?
Posted: Thursday 24 December 2015 16:39
by elgarne
Yes, I have an "elseif" statement.
Re: Cannot have 4 "OR" statements in one "IF"?
Posted: Friday 25 December 2015 11:29
by mrf68
And whaf if you try it as a single 'if then'?
Just tested it with this:

- 20151225 1.jpg (31.29 KiB) Viewed 1651 times
.. works great.
Re: Cannot have 4 "OR" statements in one "IF"?
Posted: Friday 25 December 2015 20:36
by elgarne
Actually, it seems I'm limited in the number of 'items'. It I have 2 'elseif' statements and 3 'or' in the first if, then it does not save the event but does not display an error message.
With 2 'or' and 2 'elseif', it works. I have to delete one 'else if', in order to be able to use 3 'or'.