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:
Re: Re: [ECS] IF, THEN, ELSE....OR MAYBE NOT?
bgprager.mindspring.com
Wed, 15 Nov 2000 10:40:42 -0500

Kevin,  BEGINIF starts a logical block.  Within that block,  you can execute statements
using DO or perform other logical operations using IF - THEN - ELSE
If you give me your email, I'll email you an example from my code that combines all
of the above.
ecs-list@netbloc.com wrote:
> Mark:

Thanks.

A few more finer point questions on the subject:

1.  Can you use all of the same features of IF when using BEGINIF?  For
instance, can you use ELSEIF within a BEGINIF block?

2.  I take it that there is no ELSEBEGINIF?

Kevin
----- Original Message -----
From: "Mark Gilmore" 
To: 
Sent: Wednesday, November 15, 2000 8:27 AM
Subject: Re: [ECS] IF, THEN, ELSE....OR MAYBE NOT?


> Yes (my mistake)
> --
> Mark Gilmore
> Omnipotence (ECS home automation software)
> http://omnipotencesoftware.com
> 423-745-0026
> Hours: Mon-Sat, 9AM-8PM/EST
>
>
> Kevin Trainor wrote:
> >
> > Mark:
> >
> > Is it really possible to code the ELSE on a line by itself?  Or, does it
> > have to be combined with the first statement to be executed in the block
of
> > else statements?  For example, don't I really have to code it as:
> >
> > if cond
> > then statement 1
> > then statement 2
> > else statement 3
> > then statement 4
> >
> > rather than:
> >
> > if cond
> > then statement 1
> > then statement 2
> > else
> > then statement 3
> > then statement 4
> >
> > I know that this is a fine distinction.  But, perhaps it is what is
giving
> > me problems.
> >
> > Kevin
> >
> > ----- Original Message -----
> > From: "Mark Gilmore" 
> > To: 
> > Sent: Wednesday, November 15, 2000 8:01 AM
> > Subject: Re: [ECS] IF, THEN, ELSE....OR MAYBE NOT?
> >
> > > if cond
> > > then
> > > then
> > > else
> > > then
> > > then
> > > ...
> > > --
> > > Mark Gilmore
> > > Omnipotence (ECS home automation software)
> > > http://omnipotencesoftware.com
> > > 423-745-0026
> > > Hours: Mon-Sat, 9AM-8PM/EST
> > >
>



  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
.