$scon » History » Revision 2
Revision 1 (Per Amundsen, 08/13/2015 11:20 AM) → Revision 2/3 (Per Amundsen, 02/23/2023 07:34 PM)
_Added in 1.9.0_
*$scon(N)*
Returns the Nth connection id.
_See also [[/scon]], [[/scid]], [[$scid]]._
*Parameters*
N - If N = 0, number of connection id's, otherwise the Nth connection id.
*Properties*
.id - 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.
*Example*
<pre>
; Print number of connection id's.
//echo -ag $scon(0)
; Print the first connection id.
//echo -ag $scon(1)
; Evaluate $me on the first connection id.
//echo -ag $scon(1).me
</pre>