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

430 B

Table of Contents

dictionaries/rougail/00-base.yml

---
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"

Example with all variables modifiable

---
rougail:
  condition: no
  var: example