Thanks for you reply. My problem is a bit different.
I have a nested loop where I have to compare property value from outer loop with another value in the inner loop. If it matches, then I need to print the value on the screen. So far I am unable to find a way to store and retrieve the property from outer loop in a local variable that I can use to compare with the value in inner loop.
You might want to look at using the 'scratchpad' mechanism available for Pega Tags: where you can stash/retrieve values for later use.