Jump to content

Repeat?


richardl007

Recommended Posts

Posted

Is it possible to do this?

 

If

status 'lamp' is on

 

Then

 

Repeat 5 times

lamp beep

wait 2 seconds

 

set 'light' on

 

else

 

What I'm trying to ask is it possible to have an action after the repeat command that doen't repeat? So in this case it would beep 5 times then turn on a light.

Posted

Try something like this:

 

If
       Control 'Light' is switched On

Then
       Repeat 5 times
          Set 'Different Light' 1 (Beep Duration)
       Repeat 1 times
          Set 'Light' Off

Else
  - No Actions - (To add one, press 'Action')

 

 

I find the beep duration of 1 will occasionally give a double-beep the first time, so don't set two different programs to indicate different things with just 1 difference in beep count!

 

The second Repeat ends the loop. If there's no second Repeat, all instructions through the end of the program repeat.

Guest
This topic is now closed to further replies.

×
×
  • Create New...