A good tip you can keep in mind if you want to avoid getting a yeast infection is not to wear really tight clothing, especially underwear. The tight clothing will prevent air from getting around your crotch region, and that makes it the perfect breeding ground for a yeast infection.
Make sure that you eat a healthy and a nutritious meal in order to prevent yeast infections. If you don't eat healthy foods, you are lowering the performance level of your immune system. An immune system that isn't performing its job well enough can help start form a yeast infection.
As stated previously, yeast infections are painful, but the situation is a lot easier when you know how to deal with it. Make sure to implement the advice you have just read so that you are better prepared to deal with yeast infections in the future.