Page 1 of 1

Do i understand this right?

PostPosted: Thu Jul 09, 2015 11:39 pm
by jlTech
Hi boys

do i understand this right :?:

if variable TimeOfDay is equal to "Skymning and Status is equal "Hemma" it will do my actions
OR
if Luminance is less than value 6 and Status equal "Hemma" it will do my actions

Correct?

Re: Do i understand this right?

PostPosted: Fri Jul 10, 2015 12:05 am
by kw123
ANY ==> OR
ALL ==> AND

so for your setup:
cond 1 OR cond2 OR cond 3 then do action

cond3 is: c3_1 AND c3_2

so if timeofday =skymning ==> action in depend of what the others are
or status = hemma ==> actio
or (luminance <6 AND status=Hemma)

Re: Do i understand this right?

PostPosted: Fri Jul 10, 2015 12:45 am
by jlTech
OR is not visible in GUI. I need to script it then?

Re: Do i understand this right?

PostPosted: Fri Jul 10, 2015 2:09 am
by PeteVis
Hi jlTech,

What kw123 means is that when you choose "Any" at the top, it will evaluate each line with OR
If you choose "All" at the top, it will evaluate each line with AND

So in your screenshot I'm seeing this :

If var "Timeofday" = skymning
OR
If var "status" = hemma
OR
(if device < 6 AND var "status" = hemma)

So it doesn't make sense, because the var" status" will evaluate true before it reaches your last condition.

I hope this makes sense...

Re: Do i understand this right?

PostPosted: Fri Jul 10, 2015 3:36 am
by jlTech
Ahh, now i got it. Thanks for clarifying this :D

Re: Do i understand this right?

PostPosted: Fri Jul 10, 2015 7:25 am
by kw123
My writing skills stink.


Sent from my iPhone using Tapatalk

Re: Do i understand this right?

PostPosted: Fri Jul 10, 2015 11:23 pm
by jlTech
Not at all Karl :D