0

Is it possible to add multiple evaluation expression in for loop container.

Background: I have a file, in the file the value of a field will be Y/N, If the value is N then I have to keep reading this file until the value is Y then exit for loop.

To do this, I used a for loop inside for loop I am loading the data into record set destination and assigning the values to a variable called "@Value" Now in for loop I am keeping this condition

Init : @Start = 0
Eval : @Value = "N"
Assi : @Start = @Start + 1

Now I have to add one more condition in for loop such that, it has iterate only 5 times then exit. so I used @Value == "N" || @Start > 10 in evaluation expression. But it is not working. OR part is not considering, How can I achieve it.

Harsha
  • 113
  • 9
  • Have you tried setting up a Boolean variable with `Evaluate as expression = true` with your conditions and substituting the For-Loop Eval with this variable? – MiguelH Oct 15 '15 at 08:20
  • BTW, the `Eval` test with the Boolean variable would be `@BooTest= "True"` (assuming your evaluated variable is called Bootest) – MiguelH Oct 15 '15 at 08:33
  • The problem is I have to add one more condition in Eval Expression. like '@Value == "N" || @Start > 10' Can that be possible? – Harsha Oct 15 '15 at 09:09
  • I'm not sure. I'm simply suggesting an alternate way of achieving the same result! :-) – MiguelH Oct 15 '15 at 10:00
  • Thanks for suggestion, created variable and wrote an expression to handle these 2 conditions. – Harsha Oct 15 '15 at 14:08

0 Answers0