function tconn int nsyn, i, j for (i=0; i<50; i=i+1) nsyn = {getsyncount /pyr_layer/pyr[{i}]/soma/spike} for (j=0; j < nsyn; j=j+1) echo {getsyndest /pyr_layer/pyr[{i}]/soma/spike {j}} end end end