Syntax
tail(string|array, integer)
Description
The tail() function returns the last designated amount of lines from a string, or last amount of elements from an array.
Lines in a string are deemed to be separated by a newline (\n)
Example
MyString=”One\n2\nThree Four\n5\nSix”
MyArray=[“One”, 2, “Three”, “Four Five”, “six”]
println(tail(MyString, 3))
println(tail(MyArray,4))
Three Four
5
Six
[2, “Three”, “Four Five”, “six”]