add python
This commit is contained in:
parent
4c31a4e960
commit
561a0e06a6
2 changed files with 808 additions and 2 deletions
|
@ -411,7 +411,7 @@ Within a for-loop, it’s possible to cycle among a list of strings/variables ea
|
|||
```
|
||||
|
||||
#### if
|
||||
The if statement in Jinja is comparable with the Python if statement. In the simplest form, you can use it to test if a variable is defined, not empty and not false:
|
||||
The if statement in Jinja is comparable with the [Python](../dev/programming/languages/Python.md) if statement. In the simplest form, you can use it to test if a variable is defined, not empty and not false:
|
||||
```
|
||||
{% if kenny.sick %}
|
||||
Kenny is sick.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue