doc/protocol.rst: mention that sub-expressios must be enclosed in parantheses

Closes #399
This commit is contained in:
Max Kellermann 2018-11-04 12:12:38 +01:00
parent e3bc85d7bf
commit 8e66b855a3
1 changed files with 6 additions and 2 deletions

View File

@ -175,10 +175,14 @@ of:
matches the audio format with the given mask (i.e. one matches the audio format with the given mask (i.e. one
or more attributes may be "*"). or more attributes may be "*").
- ``(!EXPRESSION)``: negate an expression. - ``(!EXPRESSION)``: negate an expression. Note that each expression
must be enclosed in parantheses, e.g. :code:`(!(artist == 'VALUE'))`
(which is equivalent to :code:`(artist != 'VALUE')`)
- ``(EXPRESSION1 AND EXPRESSION2 ...)``: combine two or - ``(EXPRESSION1 AND EXPRESSION2 ...)``: combine two or
more expressions with logical "and". more expressions with logical "and". Note that each expression must
be enclosed in parantheses, e.g. :code:`((artist == 'FOO') AND
(album == 'BAR'))`
Prior to MPD 0.21, the syntax looked like this:: Prior to MPD 0.21, the syntax looked like this::