Action list to test input filename

Post Reply
MartinOwen
Newbie
Posts: 1
Joined: Mon Mar 26, 2018 11:01 am

Action list to test input filename

Post 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
allsystems
Newbie
Posts: 6
Joined: Fri Mar 16, 2018 12:33 pm

Re: Action list to test input filename

Post 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"
allsystems
Newbie
Posts: 6
Joined: Fri Mar 16, 2018 12:33 pm

Re: Action list to test input filename

Post by allsystems »

Sort Odd Even.sflow.zip
Example FLow
(4.84 KiB) Downloaded 738 times
NEOSA
Member
Posts: 39
Joined: Thu Mar 10, 2016 6:31 pm

Re: Action list to test input filename

Post 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 ?
Post Reply