rougail-tests/structures/40_8calculation_integer/rougail/00-base.yml

18 lines
436 B
YAML
Raw Normal View History

2025-03-02 16:18:24 +01:00
---
version: '1.1'
bool: false # a boolean variable
int1:
description: first integer variable
type: integer
2025-03-02 16:18:24 +01:00
default:
jinja: |
{% if rougail.bool %}1{% else %}2{% endif %}
description: if bool returns 1 otherwise return 2
int2:
description: second integer variable
type: integer
2025-03-02 16:18:24 +01:00
default:
jinja: |
{% if not rougail.bool %}3{% else %}4{% endif %}
description: if bool returns 3 otherwise return 4