Conditions in Tasks not working
Posted: Fri May 09, 2003 2:56 pm
I am having trouble getting conditions to work. To simplify I created the following test Task:
If ('Denon AVR-5700.PowerState' is Equal 'On') Then
Change 'Denon AVR-5700.Input Selection' To 'DVD'
Else If ('Denon AVR-5700.PowerState' is Equal 'Off') Then
Change 'Denon AVR-5700.Input Selection' To 'TV/DBS'
Else
Change 'Denon AVR-5700.Input Selection' To 'VCR 1'
My receiver switches to VCR 1 when Run. The PowerState HAS to be one of the 2 values (On or Off). So it looks like HB is not evaluating the expressions properly. I have tried other devices with the same result. Any ideas?
Steve
If ('Denon AVR-5700.PowerState' is Equal 'On') Then
Change 'Denon AVR-5700.Input Selection' To 'DVD'
Else If ('Denon AVR-5700.PowerState' is Equal 'Off') Then
Change 'Denon AVR-5700.Input Selection' To 'TV/DBS'
Else
Change 'Denon AVR-5700.Input Selection' To 'VCR 1'
My receiver switches to VCR 1 when Run. The PowerState HAS to be one of the 2 values (On or Off). So it looks like HB is not evaluating the expressions properly. I have tried other devices with the same result. Any ideas?
Steve