[tutorial 038] A conditional hidden family with Jinja
This commit is contained in:
parent
10ac420290
commit
2897482431
1 changed files with 9 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue