Artifact b03b1579a9d79fc7dc31cf7188ac80db5fdce342:
- File applications/examples/views/template_examples/test_if.html — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 140) [annotate] [blame] [check-ins using]
{{extend 'layout.html'}} <h1>If statement</h1> {{ a=10 }} {{if a%2==0:}} <h2>{{=a}} is even</h2> {{else:}} <h2>{{=a}} is odd</h2> {{pass}}