Skip to main content

Get User Variable

Runs on: Backend — reads the stored user variable from the database.

The Get User Variable node reads the current value of a User Variable for a specific viewer. Connect a User into the node, choose which variable to read, and the node outputs that viewer's value.

User variables are stored per viewer, so the same variable name returns a different value for each person. If the viewer has no value for the chosen variable, the node outputs nothing.

Inputs

NameTypeDescription
userUserThe viewer whose variable to read — typically the user from your trigger.

Outputs

NameTypeDescription
outputstring, number, or booleanThe viewer's current value for the chosen variable.

Configuration

  • Variable: The name of the user variable to read.

Example

A chat command flow triggered by !points connects the command's User into a Get User Variable node set to points. The output feeds a Generate Text node that replies in chat: "You have (input 0) points!"