From WikiChip
Difference between revisions of "mirc/identifiers/$"
(small edit) |
(Small grammatical fixes) |
||
Line 16: | Line 16: | ||
− | $() itself is | + | $() itself is a valid identifier which works much like {{mIRC|$eval}} |
==Examples As Operation== | ==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 | + | 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: |
<syntaxhighlight lang="mIRC"> | <syntaxhighlight lang="mIRC"> | ||
Line 27: | Line 27: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | : ''This will join the two variables, resulting in the output: "Join me with this" being | + | : ''This will join the two variables, resulting in the output: "Join me with this" being echoed to the active window.'' |
<syntaxhighlight lang="mIRC"> | <syntaxhighlight lang="mIRC"> | ||
Line 34: | Line 34: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | : ''This will multiply "33" & "77" | + | : ''This will multiply "33" & "77", then output the result to the active window.'' |
Revision as of 18:06, 13 June 2017
$
The $ character 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 word from an event, such as an ON event.
$() itself is a valid identifier which works much like $eval
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 echoed to the active window.
alias testme { echo -a $calc(33 * 77) }
- This will multiply "33" & "77", then output the result to the active window.
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.
mIRC identifier list