The substr native AI script function returns a substring of the input string.
(substring: s)substr(string: s, start: f, length: f)
start
and length
characters long.($str)result = substr("Hello, world!", 7, 5);
This example code returns the substring "world".