From: Armin Ronacher Date: Sun, 8 Aug 2010 19:59:29 +0000 (+0200) Subject: Added docs for comparisions X-Git-Tag: 2.5.1~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13203e1de13afc571955f90ece263d8443a8f6da;p=jinja2.git Added docs for comparisions --HG-- branch : trunk --- diff --git a/docs/templates.rst b/docs/templates.rst index 2588f84..da943cc 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -985,6 +985,27 @@ but exists for completeness' sake. The following operators are supported: Raise the left operand to the power of the right operand. ``{{ 2**3 }}`` would return ``8``. +Comparisions +~~~~~~~~~~~~ + +== + Compares two objects for equality. + +!= + Compares two objects for inequality. + +> + `true` if the left hand side is greater than the right hand side. + +>= + `true` if the left hand side is greater or equal to the right hand side. + +< + `true` if the left hand side is lower than the right hand side. + +<= + `true` if the left hand side is lower or equal to the right hand side. + Logic ~~~~~