> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/nodes/composite/selector.md).

# Selector

### Description

Selector nodes execute their children from left to right. They stop executing when one of their children succeeds. If a Selector's child succeeds, the Selector succeeds. If all the Selector's children fail, the Selector fails.

{% content-ref url="/pages/ftVlAoUR3VfYh6bv6bh4" %}
[Selector](/ai-tree/nodes/composite/selector/selector.md)
{% endcontent-ref %}

{% content-ref url="/pages/odBDOlKQEeLSjF9sZskv" %}
[Random Selector](/ai-tree/nodes/composite/selector/random-selector.md)
{% endcontent-ref %}
