Documentazione mIRC

$left

mIRC Scripting Language
Additional Resources - mSL Commands - mSL Identifiers - mSL Local Identifiers”) - mSL Events - mSL Event Prefixes - Security - mSL Injection - Others - Virtual Profile - Unicode

Wiki mIRC Italia

$left

Indice

$left is a string manipulation identifier used to return characters from the left side of a string.

Contents - 1 Synopsis - 2 Parameters - 3 More Examples - 4 See Also

Synopsis

$left(<string>, <length>)

Parameters

****The string to manipulate

****The length or number of characters to remove from the original string. can be a positive or negative. It cannot be 0.

If the length provided is positive, $left will return the characters from the left of the string.

$left(abcdefg, 4)
; abcd

If the length provided is negative, $left will return the characters in the string minus on the right.

$left(abcdefg, -3)
; abcde

More Examples

$left(appleseed, -4)
; apple
$left([AB]BotName, 4)
; [AB]

See Also