You can’t really prevent a branch from running. You have to control the data that you provide instead. You can write your logic to get all elements and then send those elements to one node (and an empty list to the other) depending on which function you’d like to apply.