瀏覽代碼

Help/command/if: Document variable expansion by IN_LIST

Previously this behavior was only mentioned implicitly by the command
signature.  Describe it explicitly as we do for other conditions that
automatically expand variables.

Fixes: #26234
Brad King 1 年之前
父節點
當前提交
e4a359e5d4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Help/command/if.rst

+ 4 - 0
Help/command/if.rst

@@ -471,6 +471,10 @@ above-documented condition syntax accepts ``<variable|string>``:
   variables.  If so, their defined values are used otherwise the original value
   is used.
 
+* The left hand argument to `IN_LIST`_ is tested to see if it is a defined
+  variable.  If so, the variable's value is used, otherwise the original
+  value is used.
+
 * The right hand argument to `NOT`_ is tested to see if it is a boolean
   constant.  If so, the value is used, otherwise it is assumed to be a
   variable and it is dereferenced.