$skipDoc
needed to be set to the string value "true"
in order for this to work.
<document>
<entity query="select id, text
IF(yadda.dateyyy <= NOW(),yadda.id,NULL) AS $deleteDocById,
IF(yadda.dateyyy <= NOW(),"true",NULL) AS $skipDoc,
from yadda">
</entity>
</document>