Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 238 Bytes

783-string-left.markdown

File metadata and controls

15 lines (9 loc) · 238 Bytes

LEFT

ls = LEFT (s [,n])

Returns the n number of leftmost chars of string s as string ls. If n is not specified then n = 1.

Example

s = "abcdef"
print LEFT(s)      ' Output: a
print LEFT(s, 3)   ' Output: abc