String Pad

Pads the string to a target length by filling with the given repeated substring. If the string already meets or exceeds the target length, it is returned unchanged.

Interface

Inputs

ParameterDetailsPossible Types
String

The string to be padded to a target length.

Primary Input

String
Length

The target character length after padding. When "Up To" is set, this length concerns only the portion before (or after) that substring.

Default: 10

u32
Padding

The repeated substring used to fill the remaining space. A multi-charcter substring may end partway through its final repetition.

Default: #

String
Up To

Pad only the length of the string encountered before the start of the first (or after the end of the last) occurrence of this substring, if given and present (otherwise the full string is considered).

For example, this can pad numbers with leading zeros to align them before the decimal point.

Default: ""

String
From End

Pad at the end of the string instead of the start.

Default: false

bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

String