Centrldesk help center

Pad a text right in Centrldesk

Written by Sebastian | Mar 30, 2022 3:33:17 PM

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:

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

Example B:

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