# Expressions: Referencing Simulation Data

To reference any simulation data in an expression, you can add the reference of the data to an expression by enclosing it in \[]

```
Round(  [SIMCONNECT:AUTOPILOT ALTITUDE LOCK VAR]  / 1000 )
```

The result will be the current value of SIMCONNECT:AUTOPILOT ALTITUDE LOCK VAR (e.g. 10000 (feet) ) divided by 1000 and then rounded to a full number = 10


---

# 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.spadnext.com/features/expressions/referencing-simulation-data.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.
