Yarn command problem

Hi,
I have a problem using yarn.

If I use “the dialogue line is ‘command’” as condition, nothing works. Why?

Sorry for the quality of the screenshots.