Skip to main content

Set User Variable

Runs on: Backend.

Assigns a value to a User Variable for one viewer. User variables persist across stream sessions, so use them for point totals, scores and streaks.

Inputs​

NameTypeDescription
userUserThe viewer whose variable to set.
valuestring, number, or booleanThe new value for that viewer.

Configuration​

  • Variable: The user variable to set.

Example​

On a channel-point redeem, read the viewer's redeemCount with a Get User Variable node, add 1 with a Math node and feed the result into value. Every viewer gets their own tally.