Most states don't lean on the suicide statutes for that. Typically, if the police or physicians reasonably believe that you are a danger to yourself or others, you can be involuntarily committed - no actual attempt required.
Hmmm, it pays to acquaint yourself with local laws/mores before you contemplate suicide. If you failed, you might think the cure worse than the cold.