From WikiChip
Difference between revisions of "mirc/identifiers/$right"
(Typo: on->from) |
m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{mirc title|$right identifier}}'''$right''' is a {{mIRC|string manipulation}} identifier used to return characters from the right side of a string. |
− | '''$right''' is a {{mIRC|string manipulation}} identifier used to return characters from the right side of a string. | + | |
== Synopsis == | == Synopsis == | ||
Line 9: | Line 9: | ||
<span style="display: inline-block; width: 105px;">'''<length>'''</span>The length or number of characters to remove from the original string. <length> can be a positive or negative. It cannot be 0. | <span style="display: inline-block; width: 105px;">'''<length>'''</span>The length or number of characters to remove from the original string. <length> can be a positive or negative. It cannot be 0. | ||
− | |||
If the length provided is positive, $right will return the <length> characters from the right of the string. | If the length provided is positive, $right will return the <length> characters from the right of the string. | ||
Line 27: | Line 26: | ||
; Name</syntaxhighlight> | ; Name</syntaxhighlight> | ||
− | + | == See also == | |
− | == See | ||
* {{mIRC|String Manipulation}} | * {{mIRC|String Manipulation}} | ||
* {{mIRC|$left}} | * {{mIRC|$left}} | ||
* {{mIRC|$mid}} | * {{mIRC|$mid}} | ||
+ | {{mIRC identifier list}} | ||
− | + | [[Category:mIRC identifiers|right]] | |
− | [[Category: |
Latest revision as of 13:01, 22 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$right is a string manipulation identifier used to return characters from the right side of a string.
Contents
Synopsis[edit]
$right(<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. It cannot be 0.
If the length provided is positive, $right will return the <length> 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 <length> on the left.
$right(abcdefg, -2) ; cdefg
More Examples[edit]
$right(appleseed, -4) ; eseed
$right([AB]BotName, 4) ; Name
See also[edit]
mIRC identifier list