narciro Posted August 4, 2020 Posted August 4, 2020 Hello, How can I disable a folder so the contents don't run?
MrBill Posted August 4, 2020 Posted August 4, 2020 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.
larryllix Posted August 4, 2020 Posted August 4, 2020 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.
narciro Posted August 4, 2020 Author Posted August 4, 2020 Thank you for the advice Bill and what you had seen Larry.
larryllix Posted August 4, 2020 Posted August 4, 2020 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.
larryllix Posted August 4, 2020 Posted August 4, 2020 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.