# Defining Logic

There are 3 main use cases for realvirtual.io - Simulation, Virtual Commissioning and using the 3D Digital Twin in parallel with a real machine as a 3D HMI.

For the use case simulation (but maybe also in some special cases also for the other usecases) you might want to implement your own custom logic. There are several ways for doing that, [Logicsteps](/components-and-scripts/defining-logic/logicsteps.md), [Unity Scripting](/components-and-scripts/defining-logic/unity-scripting.md), [https://github.com/game4automation/doc/blob/doc/components-and-scripts/defining-logic/broken-reference/README.md](https://github.com/game4automation/doc/blob/doc/components-and-scripts/defining-logic/broken-reference/README.md "mention") and [Unity Visual Scripting](/components-and-scripts/defining-logic/unity-visual-scripting.md).


---

# 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://doc.realvirtual.io/components-and-scripts/defining-logic.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.
