Get part of text
Return the part of a text from a start position, for a length or up to an end position.
Command in the String toolkit · id ooa.string/substring · 5 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Source text. | |
| Start | Number | No | 0 | Zero-based start position. |
| Length | Number | No | Number of characters to take; to the end when empty. | |
| End | Number | No | Zero-based end position (not included); used when length is empty. | |
| If out of range | String | No | error | When the start is past the end of the text: fail with STRING.BAD_POSITION, or return empty text. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The selected part of the text. |