# 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: 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.float16.cloud/prompting/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.
