alias highlight {
if ($isid) return isid
else echo -a ok
}
/highlight will echo in the active window "ok"
/!highlight will call the internal command
$highlight will call the internal commmand
$/highlight will return isid
so $/aliasname is what you want but this have to be used carefuly imo