Problems assigning stack pops to variables

Working on a very simple problem, but seem to be having a little problem.

Read in file and push each item onto a stack

Loop

Pop item from stack - store in temp variable POP

Define variable - PROJECT%i% (where i is a counter) - Set default value to %POP%

increment

end loop

 

The problem is that POP is set correctly to the items in the stack.  But the assignment of pop to PROJECT%i% does not work. 

 

Any ideas?

Hi Kim,

On the ‘Define Variable’ action do you have the ‘Expand variables before assigning default value’ enabled? If not then when you attempt read the PROJECT%i% value you will actually get the value of the %POP% variable.

Regards,
Paul.