Skip to main content

How to Implement a While Loop

Answered

Comments

2 comments

  • And8713

    Found the problem...

    I was using "time" rather than "start_time"

    0
  • Chris Spencer
    Silico

    Glad you've found the issue! Note that your formula above seemed to have a few syntax errors, maybe just from putting in here, but here's a standalone example of using a pulse inside a conditional in case it's helpful for others. We'll look at adding more examples into the functions and syntax documentation.

    if "time" > 10 and "time" < 30
    then pulse(10, "start_time", 2)
    else 0
    0

Please sign in to leave a comment.