Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Conditional expression for evalexpression in forloop container

$
0
0

I have a forloop on which the EvalExpression is like below - 
(@[User::Sales] == 1 || DATEPART("hh", GETDATE()) >= 22) ? "False":"True"

leaving InitExpression and AssignExpression blank. 

so, my req is either of the above evaluates to true then the loop needs to break.

The process will come out of loop if the boolean evaluates to false. So, the executeSQL task inside the forloop is assigning "1" to @[User::Sales] and I expect it to break the loop and proceed further. But, the loop is still continuing endlessly. Please let me know If I am missing anything. thank you.




Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>