How to programmatically change the work flow between SSIS control flow tasks?

sql-server, ssis

Solution

Isn't a Conditional Split a data flow task, which takes a row of data and pushes it in one of two directions according to some property of the data???

Oops, that is correct. I found this blog entry which explains how to do proper control flow conditional branching based on boolean values.

Problem

I have an SSIS package, which depending on a boolean variable, should either go to a Script Task or an Email task.(Note: the paths are coming from a Script Task) I recall in the old dts designer there was a way to do this via code. What is the proper way to accomplish this in SSIS?

Original source