rougail-output-doc/tests/docs/no_namespace/24_0family_mandatory_condition.md
2024-08-05 14:38:59 +02:00

5.2 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
condition: no    # a condition
var:
  description: a variable
  mandatory:
    type: jinja
    jinja: |
      {% if _.condition == "yes" %}
      condition is yes
      {% endif %}      
    description: only if rougail.condition has the value "yes"

Variables

Variable                                                                                                     Description                                                                                                 
condition
string standard mandatory
A condition.
Default: no
var
string standard mandatory
A variable.
Mandatory: only if rougail.condition has the value "yes".

Example with all variables modifiable

---
condition: no
var: example