-
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
$left Identifier - mIRC
< mirc | identifiers
Revision as of 15:09, 22 September 2022 by Sophist (talk | contribs) (Put back the identifier list.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
$left is a string manipulation identifier used to return characters from the left side of a string.
Contents
[hide]Synopsis[edit]
$left(<string>, <length>)
Parameters[edit]
<string>The string to manipulate
<length>The length or number of characters to remove from the original string. <length> can be a positive or negative. Using 0 returns $null (0 characters).
If the length provided is positive, $left will return the <length> characters from the left of the string.
$left(abcdefg, 4) ; abcd
If the length provided is negative, $left will return the string except the rightmost <length> characters.
$left(abcdefg, -2) ; abcde
More Examples[edit]
$left(appleseed, -4) ; apple
$left([AB]BotName, 4) ; [AB]
See also[edit]
[Expand]