Creator Help

rightpad

This topic describes the syntax and usage of the rightpad functon in Zoho Creator .

Description

The rightpad function returns the input string with whitespace characters padded to the right of the string. You specify the String that you'd like to pad and the total size of the finished String. 

Syntax

rightpad(str1,size)

The rightpad function syntax has the following arguments.

str1 - Required. The string to be padded to the right.

size - Required. The total size of the finished string.


Note: This function is supported only in free-flow scripting mode of Script Builder.

Example

rightpad("Pad me")      //would return "Pad me    " whose length is 10

Top