From WikiChip
Difference between revisions of "mirc/identifiers/$scon"
< mirc‎ | identifiers

(See Also)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''$scon''' allows you to get the server id for a connection, or specific details regarding the properties of a certain connection id. It is important to note that unlike [[$scid identifier - mIRC|$scid]], '''$scon''' works on the Nth connection, not the actual connection ID.
+
{{mirc title|$scon Identifier}}'''$scon''' allows you to get the server id for a connection, or specific details regarding the properties of a certain connection id. It is important to note that unlike {{mIRC|$scid}}, '''$scon''' works on the Nth connection, not the actual connection ID.
 +
 
  
 
== Synopsis ==
 
== Synopsis ==
Line 8: Line 9:
  
 
== Properties ==
 
== Properties ==
<span style="display: inline-block; width: 80px;">'''[.property]'''</span>If you specify a compatible [[List of identifiers - mIRC|identifier]] here, mIRC will provide you with that specific identifier property for the connection id parameter you've passed. See the examples below for more details.
+
<span style="display: inline-block; width: 80px;">'''[.property]'''</span>If you specify a compatible [[List of identifiers - mIRC|identifier]] here, it returns the value of that identifier evaluated on that connection. See the examples below for more details.
  
 
== Example ==
 
== Example ==
Line 21: Line 22:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v6.0
+
{{mIRC compatibility|6.0}}
 
 
Added On: 03/02/2002
 
  
 
== See Also ==
 
== See Also ==
[[$activecid identifier - mIRC|$activecid]]
+
* {{mIRC|$activecid}}
 
+
* {{mIRC|$cid}}
[[$cid identifier - mIRC|$cid]]
+
* {{mIRC|$lactivecid}}
 
+
* {{mIRC|$scid}}
[[$lactivecid identifier - mIRC|$lactivecid]]
+
* {{mIRC|/scid}}
 
+
{{mIRC identifier list}}
[[$scid identifier - mIRC|$scid]]
 
 
 
[[/scid command - mIRC|/scid]]
 
  
[[Category:mIRC identifiers]]
+
[[Category:mIRC identifiers|scon]]

Latest revision as of 17:51, 11 October 2018

$scon allows you to get the server id for a connection, or specific details regarding the properties of a certain connection id. It is important to note that unlike $scid, $scon works on the Nth connection, not the actual connection ID.


Synopsis[edit]

$scon(N)[.property]

Parameters[edit]

NReturns the connection ID for the Nth connection. If you specify N as 0, the total number of connections is returned.

Properties[edit]

[.property]If you specify a compatible identifier here, it returns the value of that identifier evaluated on that connection. See the examples below for more details.

Example[edit]

Echo the total number of connections to the active window

//echo -a $scon(0)

Use the optional identifier-supported property to echo the server name of connection number 1 to the active window

//echo -a $scon(1).server

Use the optional identifier-supported property to echo the network name of connection number 4 to the active window

//echo -a $scon(4).network

Compatibility[edit]

Added: mIRC v6.0
Added on: 03 Feb 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list