previous next top contents index framed top this page unframed
$nth returns the nth character of the STRING s, or -1 if s does not have an nth character. Character numbers in a STRING start at 1.
In other words, $nth(s,n) returns the same value as:
first(s[n FOR 1])
but is more convenient syntactically.
MAINSAIL Language Manual, Section 42.23