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