Variables in script are not parsed, they are evaluated. So it should be treated as if it were real Javascript variables.
So, if you write `"{{My variable}}"`, it will parse the variable ID (something like `vclfqgqkdf000008mh3r6xakty`). You need to remove the double quotes to properly get the variable content value.
Resets your variable as if it was never initialized.
## Append value(s)
A conveniant value that automatically transform your variable into a list of strings. It will append the value(s) to the list.
3 possible cases here:
- If the variable is empty, it will create a new array with the provided value(s)
- If the variable is not an array, it will create a new array with the existing value followed by the provided value(s).
- If the variable is an array, it will concatenate the provided value(s) to the existing array.
## Environment name
This will set your variable with either `web` or `whatsapp` depending on the environment.
## Transcript
This preset value will save the entire conversation transcript in a variable. It is super useful to provide context to an AI block or to send it as a recap with the [Send email](../integrations/send-email) block.
This will set your variable with the current result ID. The result ID is the ID that corresponds to a row of your [Results](../../../results/overview.mdx) table. It can be considered like a User ID for the currently chatting user.
This will set your variable with the specified date and time in ISO format. You can optionally provide a time zone to convert the date to the specified time zone.
## Random ID
This will set your variable with a random ID with the CUID algorithm.
When you are pulling data from another service, sometimes, you will have 2 lists: `Labels` and `Ids`. Labels are the data displayed to the user and Ids are the data used for other requests to that external service.
By default, new variables are not persisted in the [Results](../../../results) table. They are only stored for the current user chat session. Enabling this option will save the variable in the `Results` table.
## Execute on client
This option is useful when you want to execute the custom code on the client side. This is only necessary when you need access the user's browser information. So, if you need access to `window`, `document`, `navigator`, etc., you should enable this option.