Jump to content

folder content disable / enable


Recommended Posts

Posted
23 minutes ago, narciro said:

Hello,

How can I disable a folder so the contents don't run?

Yes, but unlike programs you can't right-click and disable, instead you need an IF statement for the folder that will never be true.

I have an integer variable called TRUE that is always set to one.  If I wanted to disable a folder I would use 'If TRUE = 0' 

I don't actually use that variable too much anymore (I did before I understood a different ISY programming concept) but I keep it around specifically for situations like this where I need to write an always true or always false for an if statement.

Posted
31 minutes ago, MrBill said:

Yes, but unlike programs you can't right-click and disable, instead you need an IF statement for the folder that will never be true.

I have an integer variable called TRUE that is always set to one.  If I wanted to disable a folder I would use 'If TRUE = 0' 

I don't actually use that variable too much anymore (I did before I understood a different ISY programming concept) but I keep it around specifically for situations like this where I need to write an always true or always false for an if statement.

I use many constants also, especially the basics named $cTRUE and $cFALSE. Be careful with this as I have found they can react differently that just using absolutes like 1 and 0. I have found cases (can't replicate what or how now, I did some testing to prove this earlier) where using the variable constants became slower in processing and also other programs have triggered improperly during ISY boot up. I suspect the ISY power process may have had some bugs in sequence order in some beta version.

I don't know if any of this still exists but the effects were seen (suspected) about 2-3 months ago.

Posted
2 hours ago, narciro said:

Thank you for the advice Bill and what you had seen Larry.

 

Don't get me wrong. I use ISY Integer constants everywhere. Then I can use names for everything instead of trying to remember room number designations, bulb scene groups and you name it. I likely have about 200 Integer variable constants now. They work great when you come back two years from now and what what 15.4 means.

post-4697-0-48045600-1469889015_thumb.jpgpost-4697-0-74427700-1475791626_thumb.jpg

Posted
4 hours ago, MrBill said:

Yes, but unlike programs you can't right-click and disable, instead you need an IF statement for the folder that will never be true.

I have an integer variable called TRUE that is always set to one.  If I wanted to disable a folder I would use 'If TRUE = 0' 

I don't actually use that variable too much anymore (I did before I understood a different ISY programming concept) but I keep it around specifically for situations like this where I need to write an always true or always false for an if statement.

In view of what I posted just above I try to stick with
   If $cTRUE is not $cTRUE

It should always work no matter what happens.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...