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

m (Examples As Operation)
m
Line 1: Line 1:
 
=$=
 
=$=
 
The ''$'' character, in mIRC, is a reference point for all identifiers, and some operations. ''$'' is usually followed by any number of built-in mIRC identifier names, with which there are hundreds of properties to choose from.
 
The ''$'' character, in mIRC, is a reference point for all identifiers, and some operations. ''$'' is usually followed by any number of built-in mIRC identifier names, with which there are hundreds of properties to choose from.
 +
  
 
==Examples As Identifier==
 
==Examples As Identifier==
Line 13: Line 14:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
: ''Grabs the first property from an event, such as an [[On events - mIRC|ON event]].''
 
: ''Grabs the first property from an event, such as an [[On events - mIRC|ON event]].''
 +
  
 
==Examples As Operation==
 
==Examples As Operation==
Line 31: Line 33:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
: ''This will multiply "33" & "77" and output the results to the active screen.''
 
: ''This will multiply "33" & "77" and output the results to the active screen.''
 +
  
 
==Others==
 
==Others==
 
There are just too many identifiers and operators that deal with ''$'' to cover here. Refer to the [[List of identifiers - mIRC|identifier's index]] for a more thorough and complete list.
 
There are just too many identifiers and operators that deal with ''$'' to cover here. Refer to the [[List of identifiers - mIRC|identifier's index]] for a more thorough and complete list.

Revision as of 00:57, 23 December 2013

$

The $ character, in mIRC, is a reference point for all identifiers, and some operations. $ is usually followed by any number of built-in mIRC identifier names, with which there are hundreds of properties to choose from.


Examples As Identifier

Some examples of the $ used as an identifier include the following:

$dialog(mydialog).title
Retrieves the title for the specified dialog.
$1
Grabs the first property from an event, such as an ON event.


Examples As Operation

The $ can also precede some characters and words in order to perform a specific operation, such as concatenating characters, or groups of characters, together. Below are a few examples:

alias testme {
  var %myvar1 = Join m, %myvar2 = e with this, %join = %myvar1 $+ %myvar2
  echo -a %join
}
This will join the two variables, resulting in the output: "Join me with this" being displayed to the active window in an echo.
alias testme {
  echo -a $calc(33 * 77)
}
This will multiply "33" & "77" and output the results to the active screen.


Others

There are just too many identifiers and operators that deal with $ to cover here. Refer to the identifier's index for a more thorough and complete list.