> For the complete documentation index, see [llms.txt](https://docs.float16.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.float16.cloud/prompting/variable.md).

# Variable

### Intro

LLMs have the ability to recall and reference the data we declared.

We could compare this ability to declaring variables in any programming language.

### How it work ?&#x20;

You could use "ANY" method to declare a variable.

```
i.e.
a = "hello world"
a => "hello world"
a -> "hello world"
<a>helloworld<a>
{a}helloworld{a}
a > "hello world"
a => hello world
"""a
hello world
"""
```

{% hint style="info" %}
A software developer could consider an LLM as a 'natural coding language.' It has similar abilities to other programming languages.
{% endhint %}

### Prompt Example

{% embed url="<https://prompt.float16.cloud/prompt/4039d295-c037-4c7b-999d-0ddb2a07663f>" %}
Basic declaration and printing of a variable's value
{% endembed %}

{% embed url="<https://prompt.float16.cloud/prompt/71382ab9-b152-4b54-a66c-0fb7ecfae1ed>" %}
Basic declaration and printing of a variable's value using some variable
{% endembed %}

{% embed url="<https://prompt.float16.cloud/prompt/ccb791c7-6c98-4ee6-86ec-7dd3c5b4594d>" %}
Change value of variable
{% endembed %}

{% embed url="<https://prompt.float16.cloud/prompt/9836b258-ef9a-474f-b383-614d8ce08647>" %}
Access nested variable
{% endembed %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.float16.cloud/prompting/variable.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
