# TLO:Select

## Description

Object used to determine if a match was made to argument in the given set of values.

## Forms

* [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md) **Select\[\***&#x61;rgument\_,\_value1\_\[,*value2*,...]\*]\_

## Access to Types

* [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md) **int**

## Examples

`/declare thing string outer foo`\
`/echo ${Select[${thing},foo,bar,baz]} | output: 1`\
`/echo ${Select[${thing},bin,foo,baz]} | output: 2`\
`/echo ${Select[${thing},bin,baz,foo]} | output: 3`\
`/echo ${Select[${thing},bin,bar,baz]} | output: 0`

`/if (${Select[${Target.Class.ShortName},CLR,DRU,SHM]} > 0) /echo Target is a healer`

## See Also

* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)
* [int](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-select.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
