add python

This commit is contained in:
JMARyA 2024-02-19 13:57:09 +01:00
parent 4c31a4e960
commit 561a0e06a6
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 808 additions and 2 deletions

View file

@ -411,7 +411,7 @@ Within a for-loop, its 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.