March 2019
Intermediate to advanced
412 pages
9h 49m
English
Like most languages, Jinja2 comes equipped with the standard set of comparison expressions you would expect, which will render a Boolean true or false.
The expressions in Jinja2 are as follows:
| Expression | Definition |
| == | True if two objects are equal |
| != | True if two objects are not equal |
| > | True if the left-hand side is greater than the right-hand side |
| < | True if the left-hand side is less than the right- hand side |
| >= | True if the left-hand side is greater than, or equal to the right-hand side |
| <= | True if the left-hand side is less than, or equal to the right-hand side |
If you have written comparison operations in almost any other programming language (usually in the form of an if statement), these should all seem ...
Read now
Unlock full access