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