Text

Pad a text left using Pad Text Left block

Pad a text left in Centrldesk

The Pad Text Left block pads a text with another text (multiple times, if needed) until the resulting text reaches the given length. The padding is applied from the start of the text. 

The input Text defines the text, the input Length sets the length of the text and the input Pad specifies the characters to be padded.

Example A:

library-text-functions-padleft-example-1-1

The result of the input text 'Hello' with Length '10' and Pad '0' is '00000Hello'.

Example B:

library-text-functions-padleft-example-2-1

The result of the input text 'Hello' with Length '15' and Pad 'AB' is 'ABABABABABHello'.

Result:

Text of the specified length with the Pad text applied left.

Tips and best practices:

-

Library:

Text

Similar posts

Subscribe to our newsletter

Stay up to date on upcoming news and topics of creating web apps without code.