One small issue, it should be `elseif` instead as per our coding standards