How can you tell if an onion has gone bad?

they would tend to feel slimy inside, dark spots, soft.