Skip to content

Pad Left

120

The Pad Left node ensures a string reaches a specific length by adding characters to its beginning. This is primarily used for consistent visual formatting and aligning text.

When to use this node: * Digital Clock Displays: Ensuring minutes and seconds always have two digits (e.g., padding "5" to become "05"). * Serial Numbers: Formatting IDs so they consistently show a specific number of leading zeros. * Table Alignment: Padding strings with spaces to ensure text-based columns on a display remain perfectly aligned.

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]