IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#37738 - 11/08/11 05:45 PM Layout Conditions
tingarra Offline
OL Newbie

Registered: 10/13/11
Posts: 8
Hello folks, I need your help!

I have a job that needs to print with a different layout depending on what code is tagged to the data. I have 12 layouts.. (ugh)

I think I'm understanding how to write the IF expression for cases where only one code matches the layout. But how do I tell it if code says "A", "B", or "C" all print layout X?

Any insight would be appreciated.

Thanks.

Top
#37744 - 11/09/11 04:03 PM Re: Layout Conditions [Re: tingarra]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
tingarra,

In this case, you could use an expression like this one:

IF([CODE] = "A" OR [CODE] = "B" OR [CODE] = "C", Print, Skip)

Replace [CODE] by whatever field name you use for the code. This will print the layout if it's equal to A, B or C. Otherwise, it will skip it.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top
#37746 - 11/09/11 04:35 PM Re: Layout Conditions [Re: Raphael Lalonde Lefebvre]
tingarra Offline
OL Newbie

Registered: 10/13/11
Posts: 8
This helps a ton! I was forgetting the field name in the OR's. Makes perfect sense now that I see it. Haha

Thanks a bunch!

Top