rougail-output-doc/tests/docs/no_namespace/24_0family_mandatory_condition.md

28 lines
5.1 KiB
Markdown
Raw Normal View History

2024-07-10 21:27:48 +02:00
---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
condition: no # a condition
var:
description: a variable
mandatory:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: only if rougail.condition has the value "yes"
```
# Variables
| Variable                                                                                                     | Description                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **condition**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: no |
| **var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` _`mandatory`_ | A variable.<br/>**Mandatory**: only if rougail.condition has the value "yes". |
2024-07-10 21:27:48 +02:00