# Variables

Variables are values that have been returned by a source or a previous task. Each source and task assigns a name and a value determined at runtime to each variable.

Variables are added to a task definition by entering a value surrounded by double curly braces in an input field `{{like_this}}`. Any occurrence of this token in a task definition will be replaced by the value of the variable itself at runtime.


---

# 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.midpointapi.com/midpoint-documentation/core-concepts/midpoints/source-and-task-definitions/variables.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.
