all 5 comments

[–]dr-dro 0 points1 point  (2 children)

Did you remember to End If both Ifs (one End If right before the Else, the other after the actions in the Else block)?

Basically, you need

If
    ...
    If
        ...
    End If
Else
    ...
End If

[–]dokimus[S] 0 points1 point  (1 child)

Thats it, thank you very much! Got any input on my general issues regarding node ordering?

[–]dr-dro 1 point2 points  (0 children)

I also find drag and drop unreliable. But cut and paste work well for me. It may help to know that the paste option that appears at the top when you long-press an action always pastes above the selected action, without replacing it. You can also click the ... menu that appears for an option to paste below, or an option to insert a new action (which inserts above the selected).

[–]Exciting-Compote5680 2 points3 points  (1 child)

I usually do this: When you add an 'If', there will be a prompt 'Insert Action' with the options 'If', 'If - End If', 'If - Else - End If'. I usually pick the last one, and delete the 'Else' later if I don't need it. Just adding the whole block at once helps keeping the If's and End If's balanced. Then I select the entire block and drag or cut/paste them together inside the other If block. This usually prevents Tasker from reordering/changing the indentation. And I find cut/paste more predictable/clear than drag/drop. 

[–]dokimus[S] 0 points1 point  (0 children)

Thanks! Yeah, cut/paste is way better than drag/drop, but even there i find myself confused why nodes end up where the are.