Whatever message this page gives is out now! Go check it out!

LJustify

Last update:
May 18, 2026

Description

Left justifies characters in a string of a specified length.

Returns

A copy of a string, left-justified.

Category

Syntax

LJustify(string, length)

See also

Parameters

Parameter
Description
string
A string or a variable that contains one
length
Length of field in which to justify string

Example

<cfscript>
    string="Hello CFFiddle, how are you?"
    length=50
    writeOutput(LJustify(string,length))
</cfscript>
Output
Hello CFFiddle, how are you?

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page