From WikiChip
$str identifier - mIRC
< mirc‎ | identifiers

$str duplicates the specified text string n times.


Synopsis[edit]

$str(<text>,<N>)

Parameters[edit]

TextThe text string that is being replicated.
NInteger 1+ is the number of times Text is replicated.

Returns $null if N is $null or is not greater than or equal to 1.

Example[edit]

//echo -a $str(Yes,3)
; returns: YesYesYes
//echo -a $str(Yes $+ $chr(32) ,3)
; returns: Yes Yes Yes

Identifier makes it easier to replicate long strings, or strings of variable lengths.

//echo -a $str(=+ ,39) $+ =
//echo -a %Title
//echo -a $str($chr(45),$len(%Title))
; Initialize a 20-token comma-separated array
//set %values $str(0 $+ $chr(44),19) $+ 0

Compatibility[edit]

Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

Note: Version 5.0 changed syntax from $str(N,text)


[Expand]
v · d · e mIRC identifier list