Conditional Actions based on variables

Post Reply
ckuhlmannHP
Newbie
Posts: 13
Joined: Tue Jan 09, 2018 9:19 pm

Conditional Actions based on variables

Post by ckuhlmannHP » Tue Jan 07, 2020 6:39 pm

Hello All,

I currently use variable sets and actions via pitstop server hot folders. It works out great for when you want to do the same actions with variable input. But what if you wanted to run specific actions only if a variable value equaled some text.

Example:

We drop in a multi-page pdf and XML into a pitstop server hot folder. The XML has a variable that describes if the pdf is simplex or duplexed. the goal is to gang simplex and duplex jobs together but my imposition software's "add blank page to simplex" jobs does not work. So, here is where I was hoping I could do a conditional. If the value in the XML is simplex, run the action to add blank pages. if duplex, skip and move on the next action.

We do have Switch, and I am feeling like I may have to use it to handle the conditionals, but was hoping I could stick with just using pitstop.

Thanks for any advice!

abailescollins
Advanced member
Posts: 331
Joined: Wed Apr 22, 2015 4:28 pm

Re: Conditional Actions based on variables

Post by abailescollins » Wed Jan 08, 2020 12:00 am

You could do it in Switch, but it's also possible in PitStop Server using a rule variable with a boolean.

You'll need to add the Action to add a blank page into the Preflight Profile, and then use the booelan to turn it on or off.

So basically the XMl value is retrieved, the rule checks if the value in the XML is Simplex or Duplex.
if it's Simplex the Boolean is 'yes"
and that then turns the Add a Blank page Action on, so it adds the blank.
PitStop Product Manager @ Enfocus.
andrewb@enfocus.com

ckuhlmannHP
Newbie
Posts: 13
Joined: Tue Jan 09, 2018 9:19 pm

Re: Conditional Actions based on variables

Post by ckuhlmannHP » Tue Jan 14, 2020 10:14 pm

Thanks for the reply.

I ended up going the switch route. but I have an idea now how to setup directly in pitstop.

Thank you!

Post Reply