Creator Help


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


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



The leftpad function syntax has the following arguments.

str1 - Required. The string to be padded.

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


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


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

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: