Jump to content

2.4.12 - Move line up/down errors


Sub-Routine

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted
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:

Posted
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

Posted

Thanks Rand,

 

I didn't stay up all night; fortunately when I tried it again this morning I found a way to reproduce the problem.

 

As for the 'And/Or', I could not reproduce the problem, so please let me know if it happens again.

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.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...