> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/instruction/instruction.next_block.md).

# Instruction.next\_block()

Returns the list of instructions following the current instruction till the branching point.

`next_block() →` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`Instruction`](/glider-ide/api/instruction.md)`]`

## Query Example

```python
from glider import *

def query():
  ins = Instructions().start_asm_instructions().exec(1)

  return ins + ins[0].next_block()
```

## Output Example

### Virtual instruction, that represent asm start block

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FTyWweWc3IQrkwqAv5U7n%2Fimage.png?alt=media&amp;token=611a4eba-c8a8-419f-b03e-618f8d74f971" alt=""><figcaption></figcaption></figure>

### Next block instructions:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F7Ik0wrvILxASyoOjlrJH%2Fimage.png?alt=media&amp;token=ad6c59ec-3198-47c3-b433-56559b4560cf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FrKhhIPoAvGcSr0qPom3K%2Fimage.png?alt=media&amp;token=fcb3a9c4-27f6-4a1c-828a-20bf69e14a55" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FLbJ3G2aBkS2OiIIrF3Ug%2Fimage.png?alt=media&amp;token=252d864a-31ec-4041-8d8b-5a7d12c60f69" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FupolCyjrpiVfAYO1UOl0%2Fimage.png?alt=media&amp;token=25da78de-09c4-4168-a116-33488fcc6902" alt=""><figcaption></figcaption></figure>
