Elementium Sign in
Contents

Commands · Value

Split into words

Split a line into a list of its words, ready for a For each loop.

Basic plan m.cmd.split_words

In a flow

“When a player uses /tags → Split the line into words → For each word, add a tag.”

When a player uses /tags → Split the line into words → For each word, add a tag.

What it does

Split a line into a list of its words, ready for a For each loop. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 2 values later steps can use. Find it under Commands in the palette.

When to use it

Use it when the flow needs to: split a line into a list of its words, ready for a For each loop.

When not to

For a value that never changes, type it into the setting instead of wiring a node.

Typical wiring

Sockets: settings you can wire

Text Text

What to read. Variables allowed, like {trigger.args} for everything after the command's name.

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 {trigger.args}.

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

Values it gives

Words list:text

Each word, in order. e.g. one, two

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

Connects toCreate pollPoll with resultsAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsand 90 more

Words Number

How many words there are. e.g. 2

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 719 more

Often next

Related in Commands

Wires and sockets · Data values · Plans