例子:
1 2 3 4 5 |
{% if filepath == '/var/opt/tomcat_1' %} {% set tomcat_value = tomcat_1_value %} {% else %} {% set tomcat_value = tomcat_2_value %} {% endif %} |
另外一个例子:
1 2 3 |
{% if varX != varY %} `varX` is not equal to `varY` {% endif %} |
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021