rougail/tests/dictionaries/12auto_jinja_set/yml/00-base.yml

20 lines
393 B
YAML
Raw Normal View History

2023-09-04 19:18:40 +02:00
version: '0.10'
variables:
- variable:
- name: bool
type: boolean
- name: int1
type: number
- name: int2
type: number
constraints:
- fill:
- name: '{%set bool1 = bool %}{% if bool1 %}1{% else %}2{% endif %}'
type: jinja
target:
- text: int1
- name: '{%set bool1 = bool %}{% if not bool1 %}3{% else %}4{% endif %}'
type: jinja
target:
- text: int2