> 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.get_dests.md).

# Instruction.get\_dests()

Returns the list of Value objects representing the destination(s) of the instruction. This function returns the list to accommodate cases like 'a= b = c= 5', where the destinations are \[a, b, c].

`get_dests() → APIList[`[`Value`](/glider-ide/api/value.md) `|` [`NoneObject`](/glider-ide/api/internal/noneobject.md)`]`&#x20;

## Query Example

```python
from glider import *


def query():
  instruction = Instructions().exec(1,1)
  dests = instruction[0].get_dests()
  
  for dest in dests:
    print(dest.expression)
      
  return [instruction[0]]
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FIzR2n1Bj6eHv8DXrBZPx%2FScreenshot%202025-09-03%20at%2011.44.21%E2%80%AFAM.png?alt=media&amp;token=08d89eb6-7356-4aab-835e-97506d12b161" alt=""><figcaption></figcaption></figure>
