[tutorial 038] A conditional hidden family with Jinja

This commit is contained in:
egarette@silique.fr 2024-10-23 20:01:38 +02:00
parent 10ac420290
commit 2897482431

View file

@ -11,7 +11,15 @@ manual:
- HTTPS
- SOCKS
hidden:
variable: manual.use_for_https
jinja: |
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
HTTPS is same has HTTP
{% endif %}
params:
my_identifier:
type: identifier
description: |
in HTTPS case if "manual.use_for_https" is set to True
address:
description: "{{ identifier }} address"