Wednesday, 10 December 2014

For Loop container

The For Loop container defines a repeating control flow in a package. The loop implementation is similar to the For looping structure in programming languages. In each repeat of the loop, the For Loop container evaluates an expression and repeats its workflow until the expression evaluates to False.
InitExpresssion: - This expression is optional and evaluated once at the beginning only. It is used to initialize a variable that will be used in the for loop container.
Exe: - @Sr_no=0
EvalExpression: - This expression is required and also evaluated because before any work is performed inside the container.
Exe: - @Sr_no<=5
 Assign Expression: - change the value of the variables used in the EvalExpression.
Exe: - @Sr_no=@Sr_no +1

Here I am taking script task the show the iterate value.


No comments:

Post a Comment

If you have any doubt, please let me know.

Popular Posts