On Thu, 8 Jun 2023 at 21:28, Viraj Alankar <[email protected]> wrote:

> What would be right way to do apply the automatic transaction only when there 
> is also an Expenses entry? I could not figure out the proper syntax. I tried 
> something like:
>
> = expr "any(account =~ /^Liabilities:Apple Card/) and any(account =~ 
> /^Expenses/)"
>
> but this does not seem to work. I get some errors if I try removing the 
> quotes, but I'm likely doing it wrong.

You might instead apply cashback only where the amount is negative.
But I’m struggling with complex condition syntax too, so maybe someone
else will chime in.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAP_d_8VuMoRwog1834ZnuXzQayrf074sx7_hApctjxEc%2BgcrEw%40mail.gmail.com.

Reply via email to