The text formatter, explained

A node transforming text from input to formatted output

The text formatter shapes text – changing case, replacing, truncating, padding, reformatting dates and numbers, and much more. It doesn’t sit in the middle of your data flow; instead, you attach it to the node whose text you want to format.

How it attaches

A format node connects to the Format input socket, which both data nodes and the central node have:

  • Attached to the central node, it formats the complete text string that node places.
  • Attached to a single data node, it formats only that node’s string.

So you choose the scope by where you attach it – format everything at once, or just one value.

Its data input is only a trigger

The format node has its own data input, but that input is purely a trigger. Leave it unconnected and the formatting is applied always; connect a data node and it’s applied only when data flows through that input. The data isn’t formatted or used for anything else – it’s just the trigger. That’s how you make formatting conditional: apply this format only when some condition produces a value.

What it can do

A single format node bundles a lot of operations – case changes, find & replace, truncation, extraction, padding, character filtering, whitespace cleanup, encoding, date and number formatting, and a few extras – each toggled on as you need it, and applied together. The next article catalogs them.

Next

See every operation: Text Formatter Operations

Not found what you're looking for?

Node Editor · Last updated 1 month ago

Copyright ToolboxCode UG