SSIS Precedence Contraint isn't processing

I have an SQL task that selects the count of records, and the result is returned to a variable, ServiceExists.
I have set 2 precedence contraints to go to 2 different tasks, based on the value of the variable, one is @[User::ServiceExists] > 0, and the other is @[User::ServiceExists] == 0.
The flow works when the count is > 0, but when it is 0, it stops.

can anyone tell me why?
Tony OswaldSystems Admin Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
<wild guesses>

Make sure the evaluation operation says 'Expression and Constraint', and not just 'Constraint', and that 'Logical OR' is selected.
Also make sure the variable is numeric, as the number 0 is not the same as the string '0'.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tony OswaldSystems Admin Author Commented:
changed from AND to OR and it worked!!
thanks!!
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Gotta love how intuitive SSIS expressions are.

Thanks for the grade.  Good luck with your project.  -Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.