Yeast infection

How can you be sure if you have a yeast infection? If I take the medicine & don't have it what while happen? Called my doctor & she said just get the otc cream! I am having a little discomfort not much & some thick discharge a lil