Project

General

Profile

$right » History » Version 3

Per Amundsen, 02/23/2023 07:26 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*$right(text,N)*
4
5
Returns the N right characters of text.
6
7 2 Per Amundsen
_See also [[$left]], [[$mid]]._
8
9 1 Per Amundsen
*Parameters*
10
11 3 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| text | The text to return from. |
14
| N | Number of characters from the right. |
15 1 Per Amundsen
16
*Example*
17
18
<pre>
19
; Return last 5 characters from 'Hello World'.
20
//echo -ag $right(Hello World,5)
21
</pre>