Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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?
Solved! Go to Solution.
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
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
thank you. I had not noticed the flashing status before