---
title: "Define"
description: "A variable is defined and assigned a value in one combined statement using the syntax."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-script/statements/define
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/define
updated: 2026-09-04T00:00:00Z
license: https://documentation.invantive.eu/en/
---

# Syntax
A variable is defined and assigned a value in one combined statement using the syntax:
```
local define NAME "VALUE"
```
The value may refer to other variables using the `${NAME}` notation. The value is a quoted text; a double quote inside it is written twice and a backslash needs no escaping, as [[Quoting]] describes.

# Examples
Define a variable `ROOT_PATH` with the name of a folder:
```
local define ROOT_PATH "c:\temp\step2\step3"
```
Define a variable `OUT_FILE_NAME_PATH` using a previously defined variable value with the `${NAME}` notation:
```
local define OUT_PATH "c:\temp"

local define OUT_FILE_NAME_PATH "${OUT_PATH}\my-file.txt"
```
