Skip to content

Pad Right

121

The Pad Right node extends a string to a target length by appending characters to the end. This is a key tool for creating standardized data structures or cleaning up text for display.

When to use this node: * Data Protocol Matching: Ensuring a command string meets a specific fixed-length requirement for older hardware. * UI Label Cleaning: Appending spaces to a string to overwrite longer previous messages on a physical LCD or LED panel. * Formatting Lists: Creating uniform spacing after a label (e.g., "Score:......100").

Connectors in

  • S [type: string]
  • length [type: integer]

Connectors out

  • result [type: string]

Node properties

  • length [type: integer]
  • pad with [type: string]
  • S [type: string]