$scid(N)[.id]
Returns the connection id, where N is a $cid value.
If N = 0, returns total number of open server windows.
If you specify a property which is an identifier, it returns the value of that identifier for that connection. This also works for custom identifiers.
Note: The property cannot use brackets.
-----------------
by brackets it means stuff like $chan(0)
examples: $scid(2).me, $scid(11).chans [custom identifier]
-----------------
if you want something more like your idea, you could try this out (note: returning a variable using this is pointless as variables are the same for all connections):
alias scideval {
scid $1 return $eval($!2,2)
}
example: echo -a $scideval(11,$!ng.me)
note: you need the ! in the example or $ng.me would be evaulated before it got to $scideval