Documentation: Document the inequality operators
This commit is contained in:
committed by
Paul Beckingham
parent
b61bf5b806
commit
6777e04957
@@ -859,15 +859,32 @@ modifier.
|
|||||||
|
|
||||||
You can use the following operators in filter expressions:
|
You can use the following operators in filter expressions:
|
||||||
|
|
||||||
and or xor Logical operators
|
and or xor Logical operators
|
||||||
< <= = != >= > Relational operators
|
< <= = == != !== >= > Relational operators
|
||||||
( ) Precedence
|
( ) Precedence
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
task due.before:eom priority.not:L list
|
task due.before:eom priority.not:L list
|
||||||
task '( due < eom or priority != L )' list
|
task '( due < eom or priority != L )' list
|
||||||
|
|
||||||
|
The
|
||||||
|
.I =
|
||||||
|
operator tests for approximate equality. Dates compare
|
||||||
|
equal if they are on the same day (hour and minutes are ignored).
|
||||||
|
Strings compare equal if the left operand starts with the right operand.
|
||||||
|
The
|
||||||
|
.I ==
|
||||||
|
operator tests for exact equality. The
|
||||||
|
.I !=
|
||||||
|
and
|
||||||
|
.I !==
|
||||||
|
operators are the negation of
|
||||||
|
.I =
|
||||||
|
and
|
||||||
|
.I ==
|
||||||
|
respectively.
|
||||||
|
|
||||||
Note that the parentheses are required when using a logical operator other than
|
Note that the parentheses are required when using a logical operator other than
|
||||||
the 'and' operator. The reason is that some reports contain filters that must
|
the 'and' operator. The reason is that some reports contain filters that must
|
||||||
be combined with the command line. Consider this example:
|
be combined with the command line. Consider this example:
|
||||||
|
|||||||
Reference in New Issue
Block a user