From WikiChip
Difference between revisions of "mirc/identifiers/$+"
m (Bot: Adding a template (template:mIRC identifier list)) |
m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | '''$+''' is the [[concatenation]] [[concatenation operator|operator]] in [[mIRC]]. The operator can join together two strings end-to-end. In addition to its normal behavior, the $+ operator has a few special functions when used within | + | {{mirc title|$+ Identifier}}'''$+''' is the [[concatenation]] [[concatenation operator|operator]] in [[mIRC]]. The operator can join together two strings end-to-end. In addition to its normal behavior, the $+ operator has a few special functions when used within {{mirc|evaluation brackets}}. |
In its normal use, the $+ operator can be used to join together two strings end-to-end. For example: | In its normal use, the $+ operator can be used to join together two strings end-to-end. For example: | ||
Line 9: | Line 9: | ||
Will result in: | Will result in: | ||
ABC | ABC | ||
− | Likewise, the $+ operator can be used with identifiers and | + | Likewise, the $+ operator can be used with identifiers and {{mirc|variables}} as well: |
<source lang="mIRC"> | <source lang="mIRC"> | ||
Line 26: | Line 26: | ||
== See also == | == See also == | ||
− | * | + | * {{mIRC|identifiers|List of identifiers}} |
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|$+]] |
Latest revision as of 14:13, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$+ is the concatenation operator in mIRC. The operator can join together two strings end-to-end. In addition to its normal behavior, the $+ operator has a few special functions when used within evaluation brackets.
In its normal use, the $+ operator can be used to join together two strings end-to-end. For example:
echo -a A $+ B $+ C
Will result in:
ABC
Likewise, the $+ operator can be used with identifiers and variables as well:
var %x = A, %y = B echo -a %x $+ %y $+ $day
Will print (depending on the day of the week):
ABMonday
This identifier also accepts any number of parameters. The above code can be rewritten (with the same result) as:
var %x = A, %y = B echo -a $+(%x, %y, $day)
See also[edit]
mIRC identifier list