例子:
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)
- 什么是ami - 二月 22, 2021
- istio Ingress Gateways - 十一月 25, 2020
- Istio VirtualService - 十一月 23, 2020