From 6777e0495744989c53d139cad2daa7f32b199659 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 4 Aug 2015 16:45:08 -0400 Subject: [PATCH] Documentation: Document the inequality operators --- doc/man/task.1.in | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/man/task.1.in b/doc/man/task.1.in index f9418db6e..2f4d20634 100644 --- a/doc/man/task.1.in +++ b/doc/man/task.1.in @@ -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: