The first one gives "/if: invalid format", the seconds gives "/elseif: invalid format". That's because you missed a ).