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

46 lines
1.9 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
---
2024-07-10 21:27:48 +02:00
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 for "rougail"
2024-07-10 21:27:48 +02:00
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
| Variable | Description
2024-07-10 21:27:48 +02:00
|
**rougail.bool** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` |
2024-07-10 21:27:48 +02:00
A boolean variable. +
**Default**: False
2024-07-10 21:27:48 +02:00
|
**rougail.int1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `standard` `mandatory` |
2024-07-10 21:27:48 +02:00
First integer variable. +
**Default**: if bool returns 1 otherwise return 2.
2024-07-10 21:27:48 +02:00
|
**rougail.int2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `standard` `mandatory` |
2024-07-10 21:27:48 +02:00
Second integer variable. +
**Default**: if bool returns 3 otherwise return 4.
2024-07-10 21:27:48 +02:00
|====