###WRONG if ($chemical = $periodicTable[$i][1]) { #always activates ###RIGHT if ($chemical == $periodicTable[$i][1]) {