Replace if with for loop does not work with data tables

Can you put your latest attempt in a gist at gist.github.com? (I can see several problems but they're hard to point out without line numbers) Thanks!

1 Like