Cognitive flexibility is an executive function that allows individuals to adjust behavior in response to changing environmental demands. We assessed volitional switching under uncertainty, without rule-based learning, in the “Change Your Mind” task. Nineteen patients with obsessive-compulsive disorder (OCD), 19 patients with attention-deficit hyperactivity disorder (ADHD) and matched control participants (20 per group) completed the task while undergoing a functional MRI scan. The task was a…
