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

m (added wikilink)
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 evaluation brackets.
+
'''$+''' 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 [[Evaluation brackets - 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:

Revision as of 01:55, 23 December 2013

$+ 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

See also