He changed "" to @ in this line:

$d=$d+iif($i=1 & $=0,"|" + join($t,"+") + "|" + $z,@) + "| " + $y[$i,$]+ " "

A variation to Richard's find:
 Quote:

I'm using the @ to reset a variable to null, not to set it to "@".
_________________________
The Code is out there