I’m confused is wearing a mask beneficial or not?

The World Health Organisation strongly stood on the side that there was no benefit to wearing a mask unless you had symptoms. Now, it seems that everyone should wear a mask as they can prevent you from getting Covid-19.

Please enlighten me, someone!