Discharge or yeast infection

So white discharge came but I was wondering if it was yeast infection because when you have a yeast infection a white discharge also comes out so like how do you know it’s a yeast infection like with side affects and stuff