Was this page helpful?

String.Length

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples

    string.Length(text : str) : num

    Get the length of the string.

    Usage Restrictions

    1.8.3 or later

    Parameters

    Name Type Description
    text
    str The string value.

     

    Result

    The length of the string in number value.

     

    Samples


    Output

    To count the number of letters in a string:

    {{ string.length("Hello World") }} 

    11

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by