Project

General

Profile

$left » History » Version 3

Per Amundsen, 08/11/2015 09:44 AM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*$left*
4
5
Returns duration left of the currently playing song in XX:XX format.
6
7
_Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed._
8 2 Per Amundsen
9
_Added in 1.9.0_
10
11
*$left(text,N)*
12
13
Returns the N left characters of text.
14
15 3 Per Amundsen
_If N is a negative value, starts from the end._
16
17 2 Per Amundsen
*Parameters*
18
19
text - Text to substring.
20
N - The Nth characters to substring by.
21 3 Per Amundsen
22
*Example*
23
24
<pre>
25
; Get the left 5 characters from 'Hello World'.
26
//echo -ag $left(Hello World,5)
27
28
; Get the last 5 characters from 'Hello World'.
29
//echo -ag $left(Hello World, -5)
30
</pre>