From WikiChip
$left Identifier - mIRC
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$left is a string manipulation identifier used to return characters from the left side of a string.
Contents
Synopsis
$left(<string>, <length>)
Parameters
<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
$left(appleseed, -4) ; apple
$left([AB]BotName, 4) ; [AB]