Page 1 of 1

Action list to test input filename

Posted: Mon Mar 26, 2018 11:12 am
by MartinOwen
Hi,
I'm new to the Enfocus Pitstop product, so applogies if this is a daft question.

I need to create an action list that will check a specific character in the input filename and pass or fail depending on the result.
This is required to define if a page is odd or even so that we can pass it on to another process to run different check.

The filename structure is

ABCD-A01-A1-1234-001.pdf
I need to test the last character of the "001" to see if it is [1,3,5,7,9]. If it is, pass, if not fail.

Is this possible? I did look at the Variable Sets, which looked promising, but I have no experience on how to create one of these.

Any help much appreciated.
Cheers

Re: Action list to test input filename

Posted: Thu Mar 29, 2018 5:18 pm
by allsystems
For this example, you can just use the logic in an outgoing connector.

For Odd pages use
Condition with Variables defined.
[Switch.Calculation:Expression="[Job.NameProper:After="-"]%2"] - Equal to 1

For Even pages use "All Other"

Re: Action list to test input filename

Posted: Thu Mar 29, 2018 5:19 pm
by allsystems
Sort Odd Even.sflow.zip
Example FLow
(4.84 KiB) Downloaded 745 times

Re: Action list to test input filename

Posted: Fri Apr 27, 2018 5:58 pm
by NEOSA
allsystems wrote:For this example, you can just use the logic in an outgoing connector.

For Odd pages use
Condition with Variables defined.
[Switch.Calculation:Expression="[Job.NameProper:After="-"]%2"] - Equal to 1

For Even pages use "All Other"
Hi allsystems,

What's the meaning of the "%2" in a such case ?