Using the %loop% Tag to Examine the Current Scope
If you use the –struct option without specifying the name of a document, the loop executes once for each element in the current scope. During testing and debugging, you may want to use this technique to examine the variables and their values at a particular point in the DSP. The following example shows the code you would use to display the name of each key and its contents in the current scope.
.
.
.
<P>
%loop -struct%
%value $key% %value%<BR>
%endloop%
</P>
.
.
.