Text

Pad a text right using Pad Text Right block

Pad a text right in Centrldesk

The Pad Text Right 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-padright-example-1-1

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

Example B:

library-text-functions-padright-example-2-1

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

Result:

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

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.