2015-12-19 14:52:17 +01:00
|
|
|
title: !=
|
|
|
|
---
|
|
|
|
summary: Compares an expression to another by ensuring inequality.
|
|
|
|
---
|
|
|
|
type: operator
|
|
|
|
---
|
|
|
|
body:
|
|
|
|
|
|
|
|
This checks if the left side of the expression does not match the right side
|
2016-02-11 01:13:37 +01:00
|
|
|
by doing an exact comparison:
|
2015-12-19 14:52:17 +01:00
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```html+jinja
|
|
|
|
<h2>Everything Other Than Houses</h2>
|
|
|
|
<ul>
|
|
|
|
{% for project in this.children.filter(F.type != 'house') %}
|
2016-07-22 17:47:09 +02:00
|
|
|
<li>{{ project.name }}</li>
|
2015-12-19 14:52:17 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
```
|