Yeast Infection

I have a yeast infection and it's the first I've had, and I'm not really too familiar with what are all the do's and don'ts when you have one. Please someone explain what I can/can't do and things I should do in the future to prevent it. I'm kinda lost, please help!