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

This commit is contained in:
egarette@silique.fr 2026-06-13 22:38:13 +02:00
parent 626afd80ea
commit 68cdeced03

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"
...