Syntax
slice('<text>', <startIndex>, <endIndex>?)Examples
slice('Hello World', 6)'World'
slice('Hello World', -5)'World'
Maker notes
- Unlike substring(), out-of-range positions return an empty string instead of failing.
Returns part of a string between two positions. Negative positions count from the end.
slice('<text>', <startIndex>, <endIndex>?)slice('Hello World', 6)'World'
slice('Hello World', -5)'World'