Do i understand this right?

Posted on
Thu Jul 09, 2015 11:39 pm
jlTech offline
Posts: 21
Joined: Jun 20, 2015

Do i understand this right?

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?
Attachments
conditions.PNG
conditions.PNG (74.46 KiB) Viewed 3545 times

Posted on
Fri Jul 10, 2015 12:05 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Do i understand this right?

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)

Posted on
Fri Jul 10, 2015 12:45 am
jlTech offline
Posts: 21
Joined: Jun 20, 2015

Re: Do i understand this right?

OR is not visible in GUI. I need to script it then?

Posted on
Fri Jul 10, 2015 2:09 am
PeteVis offline
Posts: 180
Joined: Jun 19, 2015

Re: Do i understand this right?

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...

Posted on
Fri Jul 10, 2015 3:36 am
jlTech offline
Posts: 21
Joined: Jun 20, 2015

Re: Do i understand this right?

Ahh, now i got it. Thanks for clarifying this :D

Posted on
Fri Jul 10, 2015 7:25 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Do i understand this right?

My writing skills stink.


Sent from my iPhone using Tapatalk

Posted on
Fri Jul 10, 2015 11:23 pm
jlTech offline
Posts: 21
Joined: Jun 20, 2015

Re: Do i understand this right?

Not at all Karl :D

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests