What I do is create a sql task that contains a query that returns 1 or 0 based on the condition I want to test for. Store the result of that query in a variable, then use the "expression and constraint" connection referencing the variable as the expression. You get to the "expression and constraint" part by editing the connection.