Skip to main content

$var

The $var operator retrieves the value of a variable from the current scope.

Input

  • A single string value representing the variable name

Output

  • The value of the variable, or null if the variable is not defined

Examples

Retrieve Variable Value

Result: The value of variable x, or null if x is not defined

Use with Let in a Block

Result: "Hello, Alice!"

Variable Not Defined

Result: null