Jump to content

2.4.12 - Move line up/down errors


Sub-Routine

Recommended Posts

While editing a program:

 

When I move a line up or down And changes to Or and vice versa.

 

When a line is highlighted FastOn changes to On in the editing window.

 

After the program is saved I don't see the same affects.

 

Original program:

If
       Control 'Patio' is switched Fast On

Then
       Set  Scene 'Outside Lights' On
       Set  Scene 'Indoor Lights' On
       Set 'Patio' Fast On
       Set 'Sidewalk Flood' Fast On
       Set 'Driveway' Fast On

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

 

New line added:

If
       Control 'Patio' is switched Fast On
    Or Control 'Patio' is switched On

Then
       Set  Scene 'Outside Lights' On
       Set  Scene 'Indoor Lights' On
       Set 'Patio' Fast On
       Set 'Sidewalk Flood' Fast On
       Set 'Driveway' Fast On

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

 

Lines exchanged, Or changes to And, and visa versa:

If
       Control 'Patio' is switched On
   And Control 'Patio' is switched Fast On

Then
       Set  Scene 'Outside Lights' On
       Set  Scene 'Indoor Lights' On
       Set 'Patio' Fast On
       Set 'Sidewalk Flood' Fast On
       Set 'Driveway' Fast On

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

 

After selecting the line to correct the And/Or FastOn is changed to On. I don't see this with other commands.

If
       Control 'Patio' is switched On
    Or Control 'Patio' is switched On

Then
       Set  Scene 'Outside Lights' On
       Set  Scene 'Indoor Lights' On
       Set 'Patio' Fast On
       Set 'Sidewalk Flood' Fast On
       Set 'Driveway' Fast On

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

 

Rand

 

---

ATF? A man can always use more alcohol, tobacco and firearms.

Link to comment

Chris,

 

If you create and save the original program I displayed, and then try to add an If 'Or control X is switched on' I hope you will see the error. I had created a trigger based on FastOn and wanted to add an Or On condition based on the same switch as the FastOn. So my roommates wouldn't have to remember twice quickly. And then I wanted to move the If On above the If FastOn. Does that make sense?

 

It may be that you have to create and save and quit and possibly restart the Console. Then attempt the changes I suggest.

 

Rand

Link to comment

Thanks Rand,

 

1) And/Or

 

The And/Or swapping looks odd, but is working correctly.

 

An And/Or is assigned to each line as you add it. If its the first entry, or the first entry after an open parentheses then it is not shown because it is not used. When you move the line down, it then appears because it is used.

 

In other words, you see:

If 
       Control 'Patio' is switched Fast On 
    Or Control 'Patio' is switched On 

Then  

 

But its the same as:

If 
   And Control 'Patio' is switched Fast On 
    Or Control 'Patio' is switched On 

Then  

 

Swap the lines:

If 
    Or Control 'Patio' is switched On 
   And Control 'Patio' is switched Fast On 

Then  

 

You see:

If 
       Control 'Patio' is switched On 
   And Control 'Patio' is switched Fast On 

Then  

2) Fast On changed to On

 

I tried doing this for awhile, and managed one time to get it to do this by some random combination of what you mentioned. I can't reliably reproduce it, but I'll see if I can make a fix for it.

 

It took me so long to reproduce this, I'm surprised you found it in the first place.

Link to comment
Thanks Rand,

 

 

2) Fast On changed to On

 

I tried doing this for awhile, and managed one time to get it to do this by some random combination of what you mentioned. I can't reliably reproduce it, but I'll see if I can make a fix for it.

 

It took me so long to reproduce this, I'm surprised you found it in the first place.

 

Oh, you know me :wink:

Link to comment
Thanks Rand,

 

1) And/Or

 

The And/Or swapping looks odd, but is working correctly.

 

An And/Or is assigned to each line as you add it. If its the first entry, or the first entry after an open parentheses then it is not shown because it is not used. When you move the line down, it then appears because it is used.

 

In other words, you see:

If 
       Control 'Patio' is switched Fast On 
    Or Control 'Patio' is switched On 

Then  

 

But its the same as:

If 
   And Control 'Patio' is switched Fast On 
    Or Control 'Patio' is switched On 

Then  

 

Swap the lines:

If 
    Or Control 'Patio' is switched On 
   And Control 'Patio' is switched Fast On 

Then  

 

You see:

If 
       Control 'Patio' is switched On 
   And Control 'Patio' is switched Fast On 

Then  

.

 

While editing a program:

 

When I move a line up or down And changes to Or and vice versa.

 

When a line is highlighted FastOn changes to On in the editing window.

 

After the program is saved I don't see the same affects.

 

After I Saved that program exchanging lines keeps the And/Or as set for the second line. I prefer that method.

 

I thought that as I was editing that I had set both lines to Or and watched them toggle as I exchanged them. Now I can't reproduce it :oops:

Well, I'll keep trying :D

 

Thank you for your time,

Rand

Link to comment

Archived

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


×
×
  • Create New...