- if

范式

- if: expr

您可以通过if标签来进行条件判断,与then标签连用

属性

用法

不等式条件判断

- if: '1 < 2'
- then:
  - echo: '"less then!"'