Was this page helpful?

List.IndexesOf

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

    Find all 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

    A list that indicates where a value exists in the list

    Samples


    Output

    to find out where a values exists in a list:

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

     

    [ 0, 4 ]
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by