Data tables · Step
Add to a row value
Add to a number in a row, safely when two happen at once, like a member's warnings.
table.increment
In a flow
“When a button is clicked, add to a row value.”
Warn → Add to a row value warnings, key {user.id}, warnings by 1 → If Value is 3 → Time out.
What it does
Add to a number in a row, safely when two happen at once, like a member's warnings. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Data tables in the palette.
When to use it
Use it to keep rows of data, like a spreadsheet: add to a number in a row, safely when two happen at once, like a member's warnings.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Key Text
-
The row's key, like {user.id} for one row a member. Variables allowed.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses {user.id}.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
- By Number
-
How much to add; a minus takes away.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 1.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
Values it gives
- Value Number
-
The new number. e.g. 3
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more