# 2. Passing Value to the Output Variable

* Use the return function in both **Python** and **JavaScript** to pass output values from a Custom Action.
* The returned value is fetched by Avo Assure and can be used in subsequent steps. For example, the returned value can be displayed using the **Display Variable Value** action.

#### Example:

1. Python:\
   return value
2. JavaScript:\
   return \`value\`;

{% hint style="info" %}
***Important:***

* *You can use both languages (Python and JavaScript) for all functionalities.*
* *However, if the script or test case does **not involve a browser**, avoid using JavaScript, as it may throw an error in such cases.*
  {% endhint %}


---

# 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://docs.avoautomation.com/avo-assure/actions/custom-action/handling-input-and-output-variables/2.-passing-value-to-the-output-variable.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.
