Do these seem like intrusive thoughts to you? Like are you feeling like you want to live, but thoughts of suicide prod you all the time, no matter how hard you try to get rid of them? Or is it more like you're tired of living and would like to die, but wish you didn't feel that way?
If you're having intrusive thoughts that make you anxious, but you really don't want to die, that could be something like obsessive compulsive disorder. If you're acutely miserable and are willing to consider absolutely anything to make it stop, including suicide, that would likely get you diagnosed with depression.
Of course it may not be that simple⦠it could be neither. It's just everyone thinks "depression" when they hear about suicide, while it might not actually be so.
In any case, if you're feeling troubled by the thought that you might attempt suicide, please do seek help. It's not like death is a limited-time offer that's going to expire. ;) So long as life holds interest for you, why not stay?