From WikiChip
Difference between revisions of "mirc/identifiers/$"
m (→Examples As Operation) |
|||
(16 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{mirc title|$ Identifier}} | |
− | The ''$'' character | + | 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== | ==Examples As Identifier== | ||
Line 12: | Line 12: | ||
$1 | $1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | : ''Grabs the first | + | : ''Grabs the first word from an event, such as an {{mirc|on events}}.'' |
+ | |||
+ | |||
+ | $() 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 23: | Line 26: | ||
} | } | ||
</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 30: | Line 33: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | : ''This will multiply "33" & "77" | + | : ''This will multiply "33" & "77", then output the result to the active window.'' |
+ | |||
==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. | ||
+ | |||
+ | {{mIRC identifier list}} | ||
+ | |||
+ | [[Category:mIRC identifiers|$ identifier - mIRC]] |
Latest revision as of 20:49, 9 April 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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[edit]
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 events.
$() itself is a valid identifier which works much like $eval
Examples As Operation[edit]
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[edit]
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