I don’t know if I have herpes or it’s just yeast infection help

hi ! The first time I felt itching and discomfort i went to a doctor and they said I had a yeast infection. couple months later I felt horrible pain down there and saw that i had big "lumps" that were so painful. It calmed down for couple weeks and now it is back again but just small little white dots, a small bump and thick white discharge. I am scared I have herpes or it is yeast infection again. thank you so much !