lektor-website/content/docs/api/db/expression/lt/contents.lr

23 lines
504 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
title: <
---
summary: True if the left side is smaller than the right side.
---
type: operator
---
body:
This evaluates to true if the left side compares smaller than the right side
2015-12-19 14:52:17 +01:00
or equal to it. This behavior works best with [integers
:ref](../../types/integer/) or [floats :ref](../../types/float/).
## Template Example
```html+jinja
<h3>Projects From Before 2000</h3>
<ul>
{% for item in this.children.filter(F.year < 2000) %}
<li>{{ item.name }} ({{ item.year }})</li>
2015-12-19 14:52:17 +01:00
{% endfor %}
</ul>
```