if (0 isin $regsubex(xxxxxxxx,/x/g,$iif($did($calc(2 + \n)).state,0,1))) { if !$didwm($dname,2,$did(2,0)) { did -a $dname 2 $did(2,0) } }