Set a value for each variable added to an environment. The set value is
the default. You can override the default value by assigning a new default
prior to running the project or by temporarily changing the default as a project
start option.
Review the following information about setting environment variables:
- Special characters: do not use the %, $, [, ], {, },
", or ' characters in values.
- List of values: Define a list of possible value for a variable
by separating values with the pipe (|) character. Build Forge saves the values
as selectable options in a list. The first value in the list becomes the default
value for the environment variable.
Note: If you reference substitution
variables in the list, add a space before the substitution symbol ($). The
space causes the variable value to display instead of the substitution variable.
($BF_TAG in the following example.)
TEST= $BF_TAG|FOO or TEST=FOO|
$BF_TAG
- Dot commands as values: some dot commands can be used as the value
of an environment variable; in these cases, the system replaces the dot command
with other values. See Environment Dot Commands.
- Carriage returns: variables do not store carriage returns. You
can assign a multiple line value to a variable, as shown in the following
example. The contents of the file text.txt is assigned
to the variable test:
.bset env "test = `type text.txt`"
Build
Forge concatenates the lines in the file. For example, suppose the file's
contents were as follows:A first line
And a second line
The variable's value then becomes the following:A first lineAnd a second line