PageRenderTime 24ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/tests/erlydtl/docroot/ifnotequal

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