Your missing a semicolon on the second line, but I assume you have one in your actual script. The problem probably lies in side your loop (btw, the second argument of your for loop should probably be "<=" rather than "<" or you'll miss the last item in your list). Here's a really simple example of a working script using your approach:
First, I made a table to get some inputs:
table.PNG
Then I run this script:
dt = Current Data Table();
in_list = Associative Array(dt:input) << get keys;
for(i=1, i<=N Items(in_list), i++,
Print(in_list[i]);
);
Here's the log output:
logoutput.PNG
It might help you to write a function that you can evaluate inside the loop with different values for the arguments each time. This will allow you to develop and test the function outsidie the loop so it is easier to troubleshoot.
-- Cameron Willden