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
This commit is contained in:
Brad King 2024-08-21 09:17:21 -04:00
parent 8dcb35911c
commit e4a359e5d4

View File

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