> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/evaluator/mid.md).

# Mid

\<evalcmd> Mid && string && Specified portion of the string. && string && string && Input string to return a portion of. && start && int && Starting position to return (0 is the left-most position). && \[length] && int && Length of string to return. \</evalcmd>

Returns *length* characters from *string* starting at position *start*. If *length* is -1 or omitted, returns from *start* to the end of the string.

//<Example://>

```
Output( Mid("Hello To You", 6, 2) );
--> To
```

*See also:*\
[left](/directory-opus/manual/reference/evaluator/left.md)\
[right](/directory-opus/manual/reference/evaluator/right.md)
