Align Center function

The Align Center function centers a string within a padding string. If the padding for both sides is uneven, the lesser amount of padding is placed on the left.

Parameter: string1

The string to be aligned. This can come from a source node, the result of another function, or a value you specify.

Parameter: string2

A padding string. This string must be long enough to create a result and must contain the character or characters to use for padding. This can come from a source node, the result of another function, or a value that you specify. You can use the Padding String function to produce a padding string.

Returns: string

The padded and centered string.

Example:

align-center(‘widgets','----------') = '-widgets--'




Feedback | Notices


Timestamp icon Last updated: Wednesday, February 17, 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/ref_Align_Center.html