Hi,
Your syntax is not correct.
As your question code is "Q00001", the question is answered with the answer option code.
At the moment you compare an answer option code "AO01" with a text "Yes".
But you have to compate the question code with the desired answer option code:
IF question Q00001" is answered with "A001" then ...
So the syntax is
Q00001!="AO02" OR (Q00001=="AO02" AND Q00001_comment != '')
You see the small improvement by
Q00001!="AO02" to avoid an error message if the question is still empty.
By the way:
In my opinion a better solution would be to have a singel "Yes/No" question followed by a question of type "long text" that is only displayed if the fiest question was answered with "No"
Either
or