WAITUNTIL command syntax???

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by minimatt, Jun 16, 2006.

  1. minimatt

    minimatt

    Joined:
    May 9, 2006
    Messages:
    6
    Likes Received:
    0
    Just starting out with a PAC controller here.... What I want to do is use the WAITUNTIL command to wait until something goes OFF...... There is no explanation of this in the help file though.... I can wait until something goes on no problems..... I have guessed at a few things, but all my guesses end up in a syntax error :(

    Any help would be greatly appreciated..... :confused:
     
    minimatt, Jun 16, 2006
    #1
  2. minimatt

    martymonster

    Joined:
    Aug 5, 2004
    Messages:
    158
    Likes Received:
    1
    Hmm,

    This is what I use.

    WaitUntil(GetLightingState("Hall light flag on"));

    I just tried this and it compiles as well.

    WaitUntil(GetLightingState("Hall light flag on")=OFF);
     
    martymonster, Jun 16, 2006
    #2
  3. minimatt

    minimatt

    Joined:
    May 9, 2006
    Messages:
    6
    Likes Received:
    0
    Thanks Marty, .... Like I said, I'm new to this.... I'm done plenty of programming, but every language is that little bit different... and the last time I even touched Pascal was back in college... and that was running on a Sperry 286 to give an idea on time ;)

    Is there a decent reference manual with good code examples and a FULL list of syntax commands?

    So far I have the help file a little sketchy....

    Cheers again....
     
    minimatt, Jun 16, 2006
    #3
  4. minimatt

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    If you have PICED (Pick Ed) installed then have a look in the manuals folder.
    C:\CLIPSAL\PICED\Manuals
    The Logic and Programmers Guide docs are a good place to start. About 400 pages worth ;)
     
    Phil.H, Jun 16, 2006
    #4
  5. minimatt

    minimatt

    Joined:
    May 9, 2006
    Messages:
    6
    Likes Received:
    0
    ... Really.... Well don't I feel stupid... Thanks Phil
     
    minimatt, Jun 16, 2006
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.