Commit 8e66b855 authored by Max Kellermann's avatar Max Kellermann

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

Closes #399
parent e3bc85d7
......@@ -175,10 +175,14 @@ of:
matches the audio format with the given mask (i.e. one
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
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::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment