Jump to content

Make program activity a testable condition in If statements


Recommended Posts

Posted

Currently I can only add If statements testing whether a program state is "True" or "False." Thinking about the popular two-tiered programming model (trigger->conditions), it would be helpful to be able to test whether a program was running or not, i.e., Activity is "Running" or "Idle". That way, in the trigger program, say a motion sensor being switch on, if the conditions program was already running with a wait, you could test for it and not call the conditions program a second time (thus cancelling the current wait).

  • Like 3
Posted

You might be able to set a variable to seconds since start of day everytime the program runs.. You could then use the time diferences to determine a run status from that.

Posted (edited)

The ability to use variables as program conditions (if statements) is very limited. Basically you can compare them to integer values and other variables.

Edited by Goose66
  • 4 weeks later...
Posted (edited)

Hey @Goose66,

Big fan of your work and honestly I'm hesitant to even offer...

Especially when I forgot what forum I was in.... 

Edited by BigMojo
Extraneous commentary - doh!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...