mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Documentation: Document the inequality operators
This commit is contained in:
parent
b61bf5b806
commit
6777e04957
1 changed files with 20 additions and 3 deletions
|
@ -859,15 +859,32 @@ modifier.
|
|||
|
||||
You can use the following operators in filter expressions:
|
||||
|
||||
and or xor Logical operators
|
||||
< <= = != >= > Relational operators
|
||||
( ) Precedence
|
||||
and or xor Logical operators
|
||||
< <= = == != !== >= > Relational operators
|
||||
( ) Precedence
|
||||
|
||||
For example:
|
||||
|
||||
task due.before:eom priority.not: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
|
||||
the 'and' operator. The reason is that some reports contain filters that must
|
||||
be combined with the command line. Consider this example:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue