Please login or register.

Login with username, password and session length

Author Topic: ELSE conditional working like OR ??  (Read 3690 times)

Burdy

  • Guest
ELSE conditional working like OR ??
« on: December 06, 2004, 02:22:40 PM »

Scenario: I set up a conditional macro
(using the advanced option) with the first
condition 'Date between Dec 1- Dec 7' and
action 'set flag 1'.  I use the 'add ELSE'
button and add condition 'Date is exactly
Dec 6' with an action step of 'set flag 2'.

When I trigger this macro, both flag 1 and 2
get set-- the IF statement executed (and the
condition step was true, so the action step
got executed) and then the ELSE statement
also executed (and since its condition was
true, its action got executed).

I would expect that once the first condition
was satisifed, the ELSE step (and contion
test) would not execute.  Is this correct
behavior?  If so, ELSE doesn't really
describe the type of conditional that's
being constructed.

It seems like 'Add Else' is just adding
another conditional statement that will
always be tested, even if the first IF is
satisfied.

Logged

X10 Pro

  • Hero Member
  • *****
  • Helpful Post Rating: 23
  • Posts: 1416
Re: ELSE conditional working like OR ??
« Reply #1 on: December 06, 2004, 02:53:15 PM »

We're taking a look at this right now. We
should have more information for you soon.
Logged

Burdy

  • Guest
Re: ELSE conditional working like OR ??
« Reply #2 on: December 07, 2004, 05:53:22 PM »

X10 Pro, any change to this behavior in the
3.173 release?
Logged

X10 Pro

  • Hero Member
  • *****
  • Helpful Post Rating: 23
  • Posts: 1416
Re: ELSE conditional working like OR ??
« Reply #3 on: December 07, 2004, 06:21:56 PM »

No, not yet. It looks like it doesn't happen
in all cases, and we're still working on it.
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: ELSE conditional working like OR ??
« Reply #4 on: December 08, 2004, 09:55:06 AM »

I would like the option of making the
conditons work either way. I would like to
be able to have several macros triggered by
the same unit code, each with their own
conditions. However, it is nice to be able
to use the "else" conditions sometimes. Any
way to allow this to be selected on a "per
macro" basis?
Logged

holger

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 36
Re: ELSE conditional working like OR ??
« Reply #5 on: December 13, 2004, 07:20:11 AM »

I looked at the AHPeeprom.txt file-
I miss-interpretated the 'else' or the S/W
in 3.173 is wrong:
Example ---
Macro get triggered via time at 15:30
Edit the macro:
------------------------
1) set 'after DUSK'  ( ~ 16:20)
else
2) set 'Time after'  18:16
-------------------------
Time delay 4:30 (sunshades1-3)
...
F1 set to 'OFF'
F2 set to 'OFF'
F3 set to 'OFF'

The sunshades never got triggered.
The aim is:
- closing shades 4:30 after sunset
- but latest 22:45 (summer period)
Logged

holger

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 36
Re: ELSE conditional working like OR ??
« Reply #6 on: December 13, 2004, 07:20:15 AM »

I looked at the AHPeeprom.txt file-
I miss-interpretated the 'else' or the S/W
in 3.173 is wrong:
Example ---
Macro get triggered via time at 15:30
Edit the macro:
------------------------
1) set 'after DUSK'  ( ~ 16:20)
else
2) set 'Time after'  18:16
-------------------------
Time delay 4:30 (sunshades1-3)
...
F1 set to 'OFF'
F2 set to 'OFF'
F3 set to 'OFF'

The sunshades never got triggered.
The aim is:
- closing shades 4:30 after sunset
- but latest 22:45 (summer period)
Logged

holger

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 36
Re: ELSE conditional working like OR ??
« Reply #7 on: December 13, 2004, 07:20:20 AM »

I looked at the AHPeeprom.txt file-
I miss-interpretated the 'else' or the S/W
in 3.173 is wrong:
Example ---
Macro get triggered via time at 15:30
Edit the macro:
------------------------
1) set 'after DUSK'  ( ~ 16:20)
else
2) set 'Time after'  18:16
-------------------------
Time delay 4:30 (sunshades1-3)
...
F1 set to 'OFF'
F2 set to 'OFF'
F3 set to 'OFF'

The sunshades never got triggered.
The aim is:
- closing shades 4:30 after sunset
- but latest 22:45 (summer period)
Logged

holger

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 36
Re: ELSE conditional working like OR ??
« Reply #8 on: December 13, 2004, 07:20:25 AM »

I looked at the AHPeeprom.txt file-
I miss-interpretated the 'else' or the S/W
in 3.173 is wrong:
Example ---
Macro get triggered via time at 15:30
Edit the macro:
------------------------
1) set 'after DUSK'  ( ~ 16:20)
else
2) set 'Time after'  18:16
-------------------------
Time delay 4:30 (sunshades1-3)
...
F1 set to 'OFF'
F2 set to 'OFF'
F3 set to 'OFF'

The sunshades never got triggered.
The aim is:
- closing shades 4:30 after sunset
- but latest 22:45 (summer period)
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.