This question has been answered by iusemodx. See the first response.
$check = $modx->getPlaceholder('wf.docid'));
if ($check == '1'){
$myLogic = 'abc';
} else {
$myLogic = '123';
}
$modx->setPlaceholder('myplaceholder', $myLogic);[*phx:input=`[+wf.docid+]`:eq=`1`:then=`xxx`:else=`yyy`*]
you can always simply put the link to resource #1 before the Wayfinder call, and have it not processed by Wayfinder normally......the Wayfinder property &excludeDocs
&excludeDocs=`1`
<ul> [[if? &is=`[*id*]:is:1` &then=`MyBespokeCodeHere` &else=`<li><a href="[(site_url)]">[[GetField? &docid=`1` &field=`menutitle`]]</a></li>`]] [+wf.wrapper+] </ul>