rougail-output-formatter/tests/results/04_5disabled_calculation_optional/rougail/00-base.yml

37 lines
769 B
YAML
Raw Normal View History

2024-12-23 20:54:52 +01:00
---
version: 1.1
condition: no # a condition
var1:
description: a first variable
mandatory: false
hidden:
jinja: |-
{% if unknown is not defined %}
2025-03-27 21:45:29 +01:00
unknown is undefined
2024-12-23 20:54:52 +01:00
{% elif unknown == "no" %}
2025-03-27 21:45:29 +01:00
unknown is no
2024-12-23 20:54:52 +01:00
{% endif %}
description: calculation from an unknown variable
params:
unknown:
variable: _.unknown
optional: true
var2:
description: a second variable
mandatory: false
hidden:
jinja: |-
{% if condition is not defined %}
2025-03-27 21:45:29 +01:00
condition is undefined
2024-12-23 20:54:52 +01:00
{% elif condition == "no" %}
2025-03-27 21:45:29 +01:00
condition is no
2024-12-23 20:54:52 +01:00
{% endif %}
description: calculation from an condition variable
params:
condition:
variable: _.condition
optional: true