# External Control Codes seemingly not updated within a function on selection change

**URL:** https://resource.dopus.com/t/external-control-codes-seemingly-not-updated-within-a-function-on-selection-change/29427
**Category:** Help & Support
**Created:** [July 22, 2018, 6:11pm UTC](https://resource.dopus.com/t/external-control-codes-seemingly-not-updated-within-a-function-on-selection-change/29427 "2018-07-22T18:11:30Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Profiler](https://resource.dopus.com/user_avatar/resource.dopus.com/profiler/32/29759_2.png) [@Profiler](https://resource.dopus.com/u/Profiler)
#### Post date: [July 22, 2018, 6:50pm UTC](https://resource.dopus.com/t/external-control-codes-seemingly-not-updated-within-a-function-on-selection-change/29427/3 "2018-07-22T18:50:33Z")

</div>

Well, I was simply trying to understand why this ["Next Sibling Folder" code](https://resource.dopus.com/t/button-to-navigate-through-dirs/8669/16) does not work (even with the line breaks that are missing from that post). It's just a learning exercise since your [Go-Relative command](https://resource.dopus.com/t/command-go-relative-go-to-next-prev-sibling-folder/20597) and Julianon's [JS update](https://resource.dopus.com/t/command-go-relative-go-to-next-prev-sibling-folder/20597/15) both work very well (thanks x 2!).

> [@Leo](#):
>
> The Select command is for changing the selection in the file display. It isn't for changing which items subsequent commands work on.

Oh, I see. That's what I thought, but it wasn't obvious.

> [@Leo](#):
>
> It _can_ be used for that in some situations, but it's usually the wrong way to do things.

Could you expand please? What would be the situations where Select would affect subsequent commands? Alternatively, what would be the right way to achieve the expected results from, say, the simplified code snippet in the OP. Like I said, this is not to solve a specific problem, but to gain a better understanding of how things work (in Standard Functions - for now).

Thank you!

---

_[View the full topic](https://resource.dopus.com/t/external-control-codes-seemingly-not-updated-within-a-function-on-selection-change/29427)._
