Project

General

Profile

$scon » History » Version 2

Per Amundsen, 02/23/2023 07:34 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$scon(N)*
4
5
Returns the Nth connection id.
6
7 2 Per Amundsen
_See also [[/scon]], [[/scid]], [[$scid]]._
8
9 1 Per Amundsen
*Parameters*
10
11
N - If N = 0, number of connection id's, otherwise the Nth connection id.
12
13
*Properties*
14
15
.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.
16
17
*Example*
18
19
<pre>
20
; Print number of connection id's.
21
//echo -ag $scon(0)
22
23
; Print the first connection id.
24
//echo -ag $scon(1)
25
26
; Evaluate $me on the first connection id.
27
//echo -ag $scon(1).me
28
</pre>