Skip to main content

Symbol

A Symbol variable holds a JS Symbol — a guaranteed-unique value, even against another Symbol created with the exact same description text. The default-value text you type into the Variables panel is used as the Symbol's description; it's purely for your own debugging convenience (it shows up if you console.log the Symbol) and has no effect on uniqueness.

Compiles to

let uniqueKey = Symbol("unique identifier");

Leaving the default-value field empty still compiles to a real, constructed Symbol — a bare Symbol() with no description — rather than leaving the variable undeclared.

Get Variable / Set Variable

A Get uniqueKey node reads it back; a Set uniqueKey node assigns a new value and continues:

Get Variable

Set Variable

The Set node's "Value" pin takes the same plain description text as the default-value field — an unwired literal there is wrapped in Symbol(...) the exact same way.

Use case

  • Unique property key or sentinel: A guaranteed-collision-free object key, or a sentinel value used to mark "no result"/"not found" in a way that can never accidentally match a real value like null or an empty string.