Comfort Home Automation/ Security System Forums Home
 Search       Members   Calendar   Help   Home 
Search by username
Not logged in - Login | Register 

If/Then Programming example
 Moderated by: admin  
 New Topic   Reply   Print 
AuthorPost
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 286
Status:  Offline
 Posted: Saturday May 5th, 2007 10:12 am
 Quote  Reply 
This example shows how to do X from 6 AM to 11 PM and do Y at other times

If  Hours < 6 Then
   Do Y [Y]
Else
   If  Hours < 23 Then
         Do X [X]
   Else
       Do Y [Y]
   End If
End If


It needs to be programmed this way because Comfigurator is not able to do the following

IF (condition 1) AND (condition 2) THEN

or

IF (condition 1) OR (condition 2) THEN


BMagalhaes
Comfort Distributors


Joined: Thursday Sep 28th, 2006
Location: Lisbon, Portugal
Posts: 34
Status:  Offline
 Posted: Monday Mar 31st, 2008 01:30 pm
 Quote  Reply 
Hi,

So does it mean that a response such as follows will not work?

If Flag ILcozinhaFrt <> 0 Then
    If Input SC_LUZ_CZ_FRENTE = 0 Then
        Do ILcozinhaFrt_On []
        Do ILcozinhaFrt_Off [] After 300 Seconds Using IL_COZINHA_Frt
    Else
        Do ILcozinhaFrt_Off [] After 300 Seconds Using IL_COZINHA_Frt
    End If
End If


Tks, Bruno

admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 367
Status:  Offline
 Posted: Monday Mar 31st, 2008 01:48 pm
 Quote  Reply 
It will work. Any valid programming statement done with Response wizard will work
My point is that the OR statement is not possible current;y, if so it would make things simpler


 Current time is 01:19 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
We insist that you abide by the rules and policies stated below. Although the moderators of the Comfort Forums will attempt to keep all objectionable messages off this forum, it is not possible for us to filter all messages. All messages express the views of the author. Cytech Technology is not responsible for the content, views or advice of any message posted by members, including staff of Cytech. By registering for the forums, you warrant that you will not post any messages that are obscene, vulgar, of a sexual nature, abusive, hateful, threatening, of racist nature or otherwise in breach of any laws. Cytech reserves the right to remove, edit or move message or topic for any reason