Using for loop w/ &expire_func

I’m having a problem iterating over a table in an &expire_func function. I receive this error: “value used but not set (t)”

When using this function with my table…

&expire_func=function(t: table[string] of set[string,string,addr], idx: string): interval
for ( [x,y,z] in t[idx] )
print x;
return 0secs;

Iterating over the table works with events, but I’d like to process indexes as they are removed from the table. Has anyone run into this before or know what might be causing the error?

Nevermind— I mistakenly had my table in the export section of the script. Moving it fixed my problem.

  • Josh