Page 1 of 1

Restrict filters - new idea

Posted: Fri May 01, 2020 12:19 am
by dfhtextpipe
Today it occurred to me that a useful enhancement to TextPipe would take the form of a new filter action in which one could have:
  • Restrict to when variable X is equal to variable Y
or
  • Restrict to when variable X is not equal to variable Y
This would make use of global variable numbers 1 to 9 defined in the search pattern, in the same manner as the filter action:
  • Send variable X to subfilter
The whole search pattern should be sent to the subfilter when the specified condition was met.

Best regards,

David

Re: Restrict filters - new idea

Posted: Wed Sep 23, 2020 10:34 pm
by DataMystic Support
Hi David,

This would not work, because TextPipe's processing of the file is asynchronous. You cannot tell at any time, which elements of the file are passing through what filter at what time. This makes it ultra-fast, but also hard to reason about.