> For the complete documentation index, see [llms.txt](https://docs.goless.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goless.com/blocks/data/slice-variable-block.md).

# Slice Variable Block

Extracts a section with a variable value.

* **Variable name**\
  The name of the variable
* **Start index**\
  The zero-based index to begin extraction. When the start index is negative, GoLess starts extracting from the end of the value.
* **End index**\
  The index of the first element that should be excluded.
