Jump to content

'Repeat 0 times' entries


Chris Jahn

Recommended Posts

Posted

This is fixed in Release 2.4.13

 

 

---------------------------------

For Release 2.4.12 and earlier

 

Please do not use Repeat 0 times as this may hang your ISY.

 

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Repeat 0 times

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

Posted

Repeat 0 is supported and is now working correctly (i.e. if you use 0 it basically ignores all actions to the end or up to the next repeat). This is useful if you want to temporarily "comment out" some actions without deleting them.

Posted

Repeat 0 == Comment

 

Hum ok that makes since...sort of...not really.

 

Why not just make it named Comment or something that is easier to understand?

 

Maybe alias it in the java:

 

function Comment (args) {
    Repeat 0 (args)
}

Posted
Chris,

I still see the '0' as an option in the spinbox widget for repeat; is this correct?

 

Rand,

Please test this to see if it is now fixed in the new beta 2.4.13 release because I don't want to lock my box up. :P

 

Mark

 

Okay, I will, but a bit later :wink:

 

Repeat 0 could be used to comment out blocks of commands in a loop. That isn't what I intended when I did it though :shock:

 

Remember, I am the guy that discovered On Never, I now have a folder with that condition to build and test programs :o

 

I still desire some way to comment lines out of a program. There could be another button next to Remove Line, a toggle Comment Line. To test various lines when a program doesn't work as expected. :?

 

Rand

Posted

Mark,

 

Repeat 0 is supported because its just as easy to allow it as not. We currently do not support commenting out code in a program, that is why I mentioned using Repeat 0 to simulate it.

 

'Repeat X times' means run the following actions (up to the end or up to then next Repeat) X times. For 'Repeat 0' this means run them 0 times.

Posted

Okay, I tested it and Repeat 0 times is now a valid function!

 

So is Repeat Every 0 seconds.

 

Now I'm going to have too root around a bit harder to break something :D

 

Thank you,

Rand

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.


×
×
  • Create New...