Was this page helpful?

List.LastIndexOf

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    list.LastIndexOf(list : list, value : any) : num
    

    Find the last index position of the given value.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    list
    list The list value.
    value
    any value to check for.

     

    Result

    The last index number that indicates where a value exists in the list

    Samples


    Output

    to find out where the last value exists in a list:

    {{ list.lastindexof([1,2,"cat", true, 1], 1) }} 

     

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

    Copyright © 2011 MindTouch, Inc. Powered by