rougail-output-formatter/tests/results/40_8calculation_integer/rougail/00-base.yml

31 lines
517 B
YAML
Raw Normal View History

2025-04-27 09:27:04 +02:00
%YAML 1.2
2024-12-23 20:54:52 +01:00
---
version: 1.1
2025-04-27 09:27:04 +02:00
bool: false # a boolean variable
2024-12-23 20:54:52 +01:00
int1:
description: first integer variable
type: integer
2024-12-23 20:54:52 +01:00
default:
jinja: >-
2025-03-27 21:45:29 +01:00
{% if rougail.bool %}
1
{% else %}
2
{% endif %}
2024-12-23 20:54:52 +01:00
description: if bool returns 1 otherwise return 2
int2:
description: second integer variable
type: integer
2024-12-23 20:54:52 +01:00
default:
jinja: >-
2025-03-27 21:45:29 +01:00
{% if not rougail.bool %}
3
{% else %}
4
{% endif %}
2024-12-23 20:54:52 +01:00
description: if bool returns 3 otherwise return 4
2025-04-27 09:27:04 +02:00
...