Piecewise

Build chat bots with blocks

value of environment variable with name (name) or default (default)

In System → Environment

Jump to block

Get the value of an environment variable.

Parameters

Parameter name Parameter type Required? Description
name String The name of the environment variable to fetch.
default String The default value to return if the environment variable is not set.

Output

String - The value of the environment variable.