Missed it myself intially ...
What you have is a quoting problem - try rewriting 'yes' to read "yes" ... or even q/yes/
In reply to Re: if -d by Bloodnok in thread if -d by Anonymous Monk