Elementium Sign in
Contents

Messages · Step

Set variable

Save a value, change a number by some, or add to a list.

Free plan set_var

In a flow

“When a button is clicked, set variable.”

What it does

Save a value, change a number by some, or add to a list. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 2 values later steps can use. Find it under Messages in the palette.

When to use it

Remember a value between runs: a counter, a member's choice, a last-seen date.

When not to

For a value only this run needs, wire it straight from the node that made it.

Typical wiring

Sockets: settings you can wire

Value Text

What to save. 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, the step runs without it.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more

Values it gives

New value Text

Text this step gives the steps after it. e.g. Hello there

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more

As a number Number

A number this step gives the steps after it. e.g. 42

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

Often next

Related in Messages

Wires and sockets · Data values · Plans