Assuming that you put the tasks inside a case structure that's wired to the Boolean or are using an event structure, connect the two subVIs by error in/out clusters on their front panels. If you don't want to use subVIs, use a sequence structure with the tasks in separate sequences (this can result in ugly code though). A much more sophisticated method would be to use a state machine.