def connect_if(self, condition, task_spec):
assert task_spec is not None<EOL>self.outputs.append(task_spec)<EOL>self.cond_task_specs.append((condition, task_spec.name))<EOL>task_spec._connect_notify(self)<EOL>
Connects a taskspec that is executed if the condition DOES match.

condition -- a condition (Condition)
taskspec -- the conditional task spec