rougail-output-doc/tests/docs/examples/40_8calculation_integer.md

620 B

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
bool: false  # a boolean variable
int1:
  description: first integer variable
  type: number
  default:
    jinja: |
      {% if rougail.bool %}1{% else %}2{% endif %}      
    description: if bool returns 1 otherwise return 2
int2:
  description: second integer variable
  type: number
  default:
    jinja: |
      {% if not rougail.bool %}3{% else %}4{% endif %}      
    description: if bool returns 3 otherwise return 4

Example with all variables modifiable

---
rougail:
  bool: false
  int1: 2
  int2: 3