---
title: "\u5B9A\u7FA9"
description: "\u5909\u6570\u306F\u3001\u69CB\u6587\u3092\u4F7F\u7528\u3057\u30661\u3064\u306E\u7D50\u5408\u3055\u308C\u305F\u30B9\u30C6\u30FC\u30C8\u30E1\u30F3\u30C8\u3067\u5B9A\u7FA9\u3055\u308C\u3001\u5024\u304C\u5272\u308A\u5F53\u3066\u3089\u308C\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-script/statements/define
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/define
updated: 2026-12-04T08:46:37Z
license: https://documentation.invantive.eu/ja/
---

# 構文
変数は、次の構文を使用して1つの結合されたステートメントで定義され、値が割り当てられます:
```
local define NAME "VALUE"
```
値は、`${NAME}`表記を使用して他の変数を参照できます。 値は引用符で囲まれたテキストです。その中の二重引用符は2回記述し、バックスラッシュはエスケープ不要です。詳細は[[Quoting]]を参照してください。

# 例
フォルダーの名前を使用して変数`ROOT_PATH`を定義します:
```
local define ROOT_PATH "c:\temp\step2\step3"
```
`${NAME}`表記を使用して、事前に定義された変数の値を使って変数`OUT_FILE_NAME_PATH`を定義します:
```
local define OUT_PATH "c:\temp"

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