Check User Variable
Runs on: Frontend (Chatbox). Chatbox Flow Editor only.
Compares a User Variable for the current viewer against a value and forwards the message or event to Pass or Fail. It reads and compares in one node.
Numbers are compared as numbers; everything else as text. exists and does not exist only test whether the viewer has the variable set.
Inputs
| Name | Type | Description |
|---|---|---|
event | any | The message or event from a chatbox trigger or an upstream check node. |
Outputs
| Name | Type | Description |
|---|---|---|
pass | any | The message or event, forwarded if the condition is met. |
fail | any | The message or event, forwarded if the condition is not met. |
Configuration
- Variable: The name of the user variable to check.
- Condition: equals, not equals, greater than, less than, at least, at most, exists, or does not exist.
- Value: The value to compare against. Ignored by exists and does not exist.
Example
Set the variable to points, the condition to at least and the value to 1000, then route Pass to a variant that makes your most loyal viewers stand out.