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

35 lines
6.5 KiB
Markdown
Raw Permalink Normal View History

2024-07-10 21:27:48 +02:00
---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
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
```
# Variables pour "rougail"
2024-07-10 21:27:48 +02:00
| Variable                                                                                                     | Description                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **rougail.bool**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `obligatoire` | A boolean variable.<br/>**Défaut**: False |
| **rougail.int1**<br/>[`number`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `obligatoire` | First integer variable.<br/>**Défaut**: if bool returns 1 otherwise return 2. |
| **rougail.int2**<br/>[`number`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `obligatoire` | Second integer variable.<br/>**Défaut**: if bool returns 3 otherwise return 4. |
2024-07-10 21:27:48 +02:00