ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Another beginif question
Joseph LaFerla
Tue, 21 Nov 2000 18:05:17 -0700

Hi all

I have another beginif question and I apologize right away if it has been
asked before!

I have the following code:

BEGINIF    Evening                 Is         True
And        At home                 Is         True
And        Awake                   Is         True
And        Dusk                    Is         True
If         Living room floor lamp  Is         Off
Then       Living room floor lamp  Set        On
If         Fireplace track light   Is         Off
Then       Fireplace track light   Set        On
If         Stereo track light      Is         Off
Then       Stereo track light      Set        On
ENDIF

The idea is that I want to code the following.  I want to turn on or off
lights depending on evening, at home, awake and dusk all being true.  Does
the beginif at the beginning incorporate the "ands" or not or does a beginif
stand on its own?

Thanks in advance.

Joe


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.