rougail-output-doc/tests/docs/examples/24_0family_hidden_condition_with_variable.md

40 lines
734 B
Markdown
Raw Normal View History

2024-11-15 08:13:45 +01:00
---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
condition1: false # a first conditional variable
condition2: false # a second conditional variable
family:
description: a family
hidden:
jinja: |
{% if not rougail.condition1 %}
condition1 is false
{% endif %}
description: if condition1 is false
variable:
description: a variable
hidden:
jinja: |
{% if rougail.condition2 %}
condition2 is true
{% endif %}
description: if condition2 is false
mandatory: false
```
# Example with all variables modifiable
```yaml
---
rougail:
condition1: false
condition2: false
family:
variable: example
```