# Variables

{% hint style="info" %}
Variables make your program very secure and I highly recommend that you make use of them
{% endhint %}

**Initial Setup:**

{% code title="C#" %}

```csharp
SealCheck.HashChecks();
if(SealCheck.isValidDLL) {
/* Arguments in order: variable key, program token, username, password */
/* Username and password is required as the user must be logged in to retrieve variables */
TrinitySeal.Seal.GrabVariables("Variable key", "Program token", textBox1.Text, textBox2.Text)
}
```

{% endcode %}

{% code title="VB.NET" %}

```
SealCheck.HashChecks()

If SealCheck.isValidDLL Then
     TrinitySeal.Seal.GrabVariables("Variable key", "Program token", textBox1.Text, textBox2.Text)
End If
```

{% endcode %}

**How to call a variable:**

{% hint style="info" %}
All variables called from the Var method are returned as strings and must be converted back to their original data type by you (unless the variable is a string) e.g. Convert.ToInt32(TrinitySeal.Seal.Var("a number"));
{% endhint %}

1. Get a variable from your program. This can be any value e.g. boolean, int, double, string, char&#x20;
2. Go to the variables page of the website and create a new variable with a name of your choice and the value of the variable from your program
3. Create the variable and go back to your program to replace the piece of data with the following code: TrinitySeal.Seal.Var("your variable name"); /\* This returns the variable value \*/

**If you are using the InitializeForm method, variables will automatically be grabbed when the user logs in, you do not need to call the GrabVariables method!**


---

# 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://trinityseal.gitbook.io/trinityseal/security/variables.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.
