There are a good many threads covering the issue of implementing for loops if you search for them.
Obligatory workaround for specified example:
Code:
//echo -a $iif($fline($active,Danny,1,1) & 1,Danny is odd!)