Documentazione mIRC

$right

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

$right

Indice

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

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

Synopsis

$right(<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, $right will return the characters from the right of the string.

$right(abcdefg, 4)
; defg

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

$right(abcdefg, -2)
; cdefg

More Examples

$right(appleseed, -4)
; eseed
$right([AB]BotName, 4)
; Name

See Also