Was this page helpful?

=== Operator

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Samples

    Used to test if two values are equal.  The === operator only succeeds if the two values have the same type and are equal. 

    Usage Restrictions

    1.8.3 or later.

    Samples


    Output

    To compare a number with its string equivalent:

    {{ 123 === "123" }} 

    false

    To compare a numeric expression with a value:

    {{ (10 + 3) === 13 }}

    true

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

    Copyright © 2011 MindTouch, Inc. Powered by