Mental health problems can affect the way we think, but it can be different for different people and for different mental health problems. For example, stress, anxiety, and depression can mean you find it difficult to think clearly, concentrate, or remember things.
(I’m sorry if I didn’t understand your question right. If you meant something else, just a leave a comment explaining and I’ll try to answer better!)
Comments