Results 1 to 6 of 6

Thread: When Statement

  1. #1
    Frequent Contributor iamchadster's Avatar
    Join Date
    Aug 2013
    Location
    Wilsonville, Oregon
    Posts
    2,643

    When Statement

    Hi there,

    So I just put in the ATK, really like it! I don't use the task function that much but tonight while playing with it I noticed the "When" statement got added in a test program and found this to be pretty useful. Did I miss something on this being released as programming language or was it just added with the ATK?

    I was trying to find some documentation as I think it could be really useful in other outputs/outlets etc.

    thank ya
    Chad

  2. #2
    Frequent Visitor
    Join Date
    Mar 2017
    Location
    US, Central
    Posts
    355
    Quote Originally Posted by iamchadster View Post
    Hi there,

    So I just put in the ATK, really like it! I don't use the task function that much but tonight while playing with it I noticed the "When" statement got added in a test program and found this to be pretty useful. Did I miss something on this being released as programming language or was it just added with the ATK?

    I was trying to find some documentation as I think it could be really useful in other outputs/outlets etc.

    thank ya
    The new firmware release includes the "When" statement. I have not tried it myself yet but opens up a lot of doors. Unlike other statements, it physically changes the state of your outlet from "Auto" to either "Off" or "On" and is not reversible as I understand it. So IMO it should be used as a last resort failsafe and should also be used to trigger an alarm. I will learn more when I finally dive into it, but that is my initial impression so far.

  3. #3
    Frequent Contributor
    Join Date
    Apr 2013
    Location
    Santa Cruz, CA
    Posts
    1,842
    Quote Originally Posted by iamchadster View Post
    Hi there,

    So I just put in the ATK, really like it! I don't use the task function that much but tonight while playing with it I noticed the "When" statement got added in a test program and found this to be pretty useful. Did I miss something on this being released as programming language or was it just added with the ATK?

    I was trying to find some documentation as I think it could be really useful in other outputs/outlets etc.

    thank ya
    Take a look at the post

    https://forum.neptunesystems.com/sho...l=1#post117114
    Jon

  4. #4
    Frequent Contributor iamchadster's Avatar
    Join Date
    Aug 2013
    Location
    Wilsonville, Oregon
    Posts
    2,643
    Good Lord that was posted in March. Where have I been?
    Chad

  5. #5
    NSI Member eschulist's Avatar
    Join Date
    Nov 2015
    Location
    Minneapolis, MN USA
    Posts
    467
    Youre even an insider. You would have been testing that with us for months.

  6. #6
    Frequent Contributor iamchadster's Avatar
    Join Date
    Aug 2013
    Location
    Wilsonville, Oregon
    Posts
    2,643
    Quote Originally Posted by eschulist View Post
    Youre even an insider. You would have been testing that with us for months.
    Yeah but I didn't get picked.
    Chad

Similar Threads

  1. Missing Statement
    By acesfull44 in forum Apex Programming for Lighting
    Replies: 1
    Last Post: 10-31-2018, 16:10
  2. Question: When statement
    By clittrell in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 12-19-2017, 08:07
  3. FAQ: Using the ‘When’ statement
    By RussM in forum Misc Apex Usage & Programming
    Replies: 0
    Last Post: 03-28-2017, 16:05
  4. Question: 2 Statement on 1 Outlet
    By Phil in forum Misc Apex Usage & Programming
    Replies: 12
    Last Post: 12-09-2015, 10:48
  5. Statement limit still the same?
    By TerraReef in forum Apex Classic/Apex Lite/Apex Jr
    Replies: 2
    Last Post: 06-09-2014, 11:35

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •