invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

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"