Goose66 Posted July 18, 2023 Posted July 18, 2023 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). 3 Quote
Jim P Posted July 19, 2023 Posted July 19, 2023 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. Quote
Goose66 Posted July 19, 2023 Author Posted July 19, 2023 (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 July 19, 2023 by Goose66 Quote
BigMojo Posted August 10, 2023 Posted August 10, 2023 (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 August 10, 2023 by BigMojo Extraneous commentary - doh! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.