Justify

Justifies characters in a string of a specified length, either left or right.

Method Signature

Justify(string=[string], length=[integer])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to justify.

length

integer

true

The specified length of the resulting string.

Examples

Tag Example

<bx:set length = 10 >
<bx:set result = RJustify( "abc", length ) >
<bx:output>
    <pre>~#result#~</pre>
</bx:output>

Additional Examples

Run Example

Last updated

Was this helpful?