Switch Calculation Expression 'Greater than'

Post Reply
User avatar
vernonvd
Member
Posts: 38
Joined: Tue Oct 09, 2012 9:21 am
Location: Pretoria, South Africa

Switch Calculation Expression 'Greater than'

Post by vernonvd »

Hi

not sure if this is possible without scripting.

i want to do a Switch Calculation expression within the Pitstop variable set editor in switch. i want to see if the trimbox height is greater than the trimbox width, exactly the same you would do on a outgoing connection with a condition with variable with the value to be true of false.
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: Switch Calculation Expression 'Greater than'

Post by Padawan »

If you want to do this without scripting then I suggest you use conditions with variables on connections. Something like this

Using conditions on connections, send all the jobs where the height is bigger then the width to one folder called "portrait" and all other jobs to a folder called "no_portrait".

In the "portrait" folder, set a private data field called "portrait" and set it to Yes. In the "no_portrait" folder, also set a private data field called "portrait", but set it to false.

Send all the jobs to the same PitStop Server element. In that PitStop Server element you can request the contents of the "portrait" private data field via single line text with variables.

The names I used are just examples of course.
User avatar
vernonvd
Member
Posts: 38
Joined: Tue Oct 09, 2012 9:21 am
Location: Pretoria, South Africa

Re: Switch Calculation Expression 'Greater than'

Post by vernonvd »

Hi Padawan

Now why didn't i think about that ;)

Thanks!
Post Reply