pad start
This block is part of the value group and was last modified in core v14.0.1.
pad start v13.0.1 Updated v14.0.1Pads the given value with char. on the left to match the given length.
In pins 3
- value required
valueThe value to pad
- length required
numberThe padding length
- pad. with
valueThe value used as padding
Out pins 1
- value
valueReturns the padded value
Prepends pad_with (repeated, then truncated) on the LEFT until the value reaches target_length, counting Unicode code points, not bytes. Returns the value unchanged when it is already at or beyond target_length or when pad_with is empty; pad_with defaults to a single space. Example: "7" target_length=3 pad_with="0" -> "007". The deprecated success and error out-pins are never emitted.
A typical wiring for pad start: the value out pin feeds convert to uppercase.

Version history
Introduced in v13.0.1.
Last modified in v14.0.1.
v13.0.6, click here to see the release notes. Back to
value Return to the main group to view all sub-groups Back to utils Return to the group to view all blocks within this group
