Math Check
The Math Check compares two numeric values using a mathematical comparison operation. This is useful for creating thresholds and numeric conditions in your flows -- for example, checking if a raid has more than 50 viewers, if a cheer is above 500 bits, or if a subscription streak is longer than 12 months.
The node evaluates the comparison and outputs a boolean result.
Inputs
| Name | Type | Description |
|---|---|---|
A | number | The first number (left side of the comparison). |
B | number | The second number (right side of the comparison). |
Outputs
| Name | Type | Description |
|---|---|---|
Result | boolean | true if the comparison holds, false otherwise. |
Configuration
- Operation: The comparison to perform. Options:
>greater than<less than==equal to!=not equal to>=greater than or equal to<=less than or equal to
Example
Use the Math Check after a Raid trigger to check if the viewer count is greater than 50. Connect the Viewers output to input A and set B to 50 with the ">" operation. When a large raid comes in, you can trigger a special big-raid alert. For smaller raids, use the false result to play a standard raid alert.