[tutorial v1.1_140] Disabled a variable when an other variable is disabled

This commit is contained in:
egarette@silique.fr 2026-06-14 21:48:44 +02:00
parent 150240b9ec
commit 9a4cb0a9cd

View file

@ -7,9 +7,8 @@ proxy_dns_socks5:
default: false
disabled:
jinja: |-
{{ _.proxy_mode != "Manual proxy configuration" or _.manual.socks_proxy.version == 'v4' }}
{{ _.manual.socks_proxy.version is propertyerror or _.manual.socks_proxy.version == 'v4' }}
return_type: boolean
description: |-
if "_.proxy_mode" is not "Manual proxy configuration"
or "_.manual.socks_proxy.version" is "v4"
if "_.manual.socks_proxy.version" is accessible and equals "v4"
...