padleft() Function

Pads text with spaces on the left so that it is a certain length.

Syntax

padleft ( text, length )

text: (Text) The text to be padded.

length: (Number) The target number of characters desired in the final text.

Returns

Text

Notes

Spaces will be added until the text has the number of characters entered for the length parameter.

Text longer than the specified length remains untouched.

Examples

padleft("boston",10) returns     boston

Open in Github Built: Fri, Nov 04, 2022 (07:10:52 PM)

On This Page

FEEDBACK