From f54677f5c0be8bdbb4dc6dc8a44288c57580fe18 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 18 Apr 2025 15:27:00 -1000 Subject: [PATCH] ;doc: boolean queries: edits --- hledger/hledger.m4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 3175dd34e..0fc9b7a6e 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -5418,8 +5418,8 @@ For example, `expr:'date:lastmonth AND NOT (food OR rent)'` means "match things which are dated in the last month and do not have food or rent in the account name". (AND is the default, so could be omitted here.) -With transaction-oriented commands like `print`, -note that posting-oriented query terms like `acct:` and `amt:` are considered to match the transaction +When using `expr:` with transaction-oriented commands like `print`, +posting-oriented query terms like `acct:` and `amt:` are considered to match the transaction if they match any of its postings.\ So, `hledger print expr:'cash and amt:>0'` means "show transactions with (at least one posting involving a cash account) and (at least one posting with a positive amount)".