# CallbackReturnMode

Used when registering a custom callback using `TSIL.__RegisterCustomCallback()`. Defines how the returned values of the executed functions will be treated and what value is returned by `TSIL.__TriggerCustomCallback()`.

| Enumerator     | Value | Description                                                                                                                                                                                                                                               |
| -------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| NONE           | 0     | Returned values are ignored                                                                                                                                                                                                                               |
| SKIP\_NEXT     | 1     | When a function returns a non nil value the rest are skipped.                                                                                                                                                                                             |
| LAST\_WINS     | 2     | The last function to return a non nil value overwrites all other returned values                                                                                                                                                                          |
| NEXT\_ARGUMENT | 3     | When a function returns a non nil value, the returned value is used as the first argument for the next functions. If a table is returned, the first element of the table will be the first argument, the second element will be the second argument, etc. |


---

# 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://team-compliance.gitbook.io/library-of-isaac/custom-enums/callbackreturnmode.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.
