Looped Array to print as csv

spark_noob:
This is the filter:

if (anArray[r][1] ==1);

Nope.

This is without any function. (if something do nothing)