| Angela 2005-09-29, 5:58 pm |
| Hi,
I have built a scripting functiod for this looping problem:
line 1
line 1
line 1
line 2
line 2
line 3
The output should look like:
line 1
line 2
line 3
All of my looping and summarization for each line is working well in the
Biztalk map. The jscript scripting functoid is running error free. Just to
make sure the inputs are numbers(comparing apples to apples) I built a
scripting functoids to make sure the inbound line numbers are number i.e.
line1 = Number(line1).
Within the primary scripting functoid I define a hold variable (i.e. var
line_hold = Number(line_hold).
Then after the first loop iteration I make line1 = line_hold.
On the next iteration of the loop, I check to see if the next line 1 is = to
line_hold....line_hold - is not ever holding the previous iterations value.
Therefore the comparison is always not equal and the summarization of the
line 1 lines is not working.
Any ideas on why the line_hold value is not holding the previous loop's value?
Thanks....
|