Was this page helpful?

List.Contains

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

    Check if list contains 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

    True if the given value exists in the list

    Samples


    Output

    to find out if a value exists in a list:

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

     

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

    Copyright © 2011 MindTouch, Inc. Powered by