Skip to main content
7-Bedrock
July 17, 2023
Solved

Delete else and else if block

  • July 17, 2023
  • 1 reply
  • 1056 views

Good afternoon,

 

I am sure this is simple but cannot find an answer.

 

What is the most direct way to delete an else block that is empty?  I really struggle with this.  Am I missing something?

 

Best answer by Werner_E

I also struggled and still do. Its really silly and unintuitive implemented. And that's certainly not the only unergonmic feature in Prime - think of the way that scrolling in larger matrices is implemented.

 

A possible solution (not sure if its the most efficient is:

Mouse-click (left or right does not matter) the word "else" (it starts to blink) and then press the DEL key.

This deletes the else-branch, but leaves an extra empty line in the if-branch (actually all lines which still were in the else-branch would now end up in the if-branch)  which you can delete using BACKSPACE.

 

You may also switch the order: Click the "else", then BACKSPACE followed by DEL

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
July 17, 2023

I also struggled and still do. Its really silly and unintuitive implemented. And that's certainly not the only unergonmic feature in Prime - think of the way that scrolling in larger matrices is implemented.

 

A possible solution (not sure if its the most efficient is:

Mouse-click (left or right does not matter) the word "else" (it starts to blink) and then press the DEL key.

This deletes the else-branch, but leaves an extra empty line in the if-branch (actually all lines which still were in the else-branch would now end up in the if-branch)  which you can delete using BACKSPACE.

 

You may also switch the order: Click the "else", then BACKSPACE followed by DEL

 

 

7-Bedrock
July 17, 2023

thank you.  I had not noticed the flashing status before