> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/lookup-table.md).

# Lookup Table

Lookup Tables convert an input value to an output value, and can be used in the Stat effects of objects which affect stats, such as `ItemObjects`.

To create a Lookup Table, right click in the Project view, and select `Create/Game Modules/Create/Lookup Table`

<figure><img src="/files/j2eNo374AiMWgLJLXkdb" alt=""><figcaption></figcaption></figure>

Add input and output values, as you'd like. You can have as many lookup tables as you need for your project.

## Get the output value from a Lookup Table

```csharp
var lookupTable = SomeLookupTable;
var outputValue = lookupTable.ResultFrom(inputValue);
```
