You could make your action depend on a variable "%condition=true" and then make two different profiles: profile a: set condition to "true" profile b: set condition to "true"
- profile a: set condition to "true"
- profile b: set condition to "true"
your profile: if variable "condition"=true then ... and there goes your exit task
But would be nice if the authors would enhance tasker for that... :)