-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
$str identifier - mIRC
< mirc | identifiers
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
- mIRC Installation
- Virtual profile
- Playing music
- Unicode
- IPv6
- Optimization
- Threads
- DCC Protocols
- Line Length Limit
- Font rendering
$str duplicates the specified text string n times.
Contents
[hide]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]