PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/src/tests/erlydtl/docroot/ifequal_preset

https://code.google.com/p/zotonic/
#! | 43 lines | 36 code | 7 blank | 0 comment | 0 complexity | 248e13bb8656acc34e168cd9d0f728eb MD5 | raw file
 1{% ifequal var1 var2 %}
 2if: var1="foo" and var2="foo" are equal
 3{% endifequal %}
 4
 5{% ifequal var1 var2 %}
 6if: var1="foo" and var2="foo" are equal
 7{% else %}
 8else: var1="foo" and var2="foo" are not equal
 9{% endifequal %}
10
11{% ifequal var1 var3 %}
12if: var1="foo" and var3="bar" are equal
13{% endifequal %}
14
15{% ifequal var1 var3 %}
16if: var1="foo" and var3="bar" are equal
17{% else %}
18else: var1="foo" and var3="bar" are not equal
19{% endifequal %}
20
21{% ifequal "foo" "foo" %}
22if: "foo" and "foo" are equal
23{% else %}
24else: "foo" and "foo" are not equal
25{% endifequal %}
26
27{% ifequal "foo" "bar" %}
28if: "foo" and "bar" are equal
29{% else %}
30else: "foo" and "bar" are not equal
31{% endifequal %}
32
33{% ifequal 99 99 %}
34if: 99 and 99 are equal
35{% else %}
36else: 99 and 99 are not equal
37{% endifequal %}
38
39{% ifequal 77 99 %}
40if: 77 and 99 are equal
41{% else %}
42else: 77 and 99 are not equal
43{% endifequal %}