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)

Page 2 of 2 < 1 2
Topic Options
#30538 - 11/13/09 02:54 PM Re: Conditional Pages
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Ha! Great news, I was beginning to think my last working neuron was breaking down... :p

Glad we could help.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#30539 - 02/04/10 08:37 AM Re: Conditional Pages
Anonymous
Unregistered


How can I put a variable in a condition?

I tried it in press tak before of the condition
define(&id, string, '')
&id:=field(fieldname(31),1)

In the condition of condition object:
condition type: Text Based;
override mode: data
string to find: &id
Operator: Location

But it's not working.

Top
#30540 - 02/04/10 01:05 PM Re: Conditional Pages
Anonymous
Unregistered


Hey Man, it's work this way

I put to ejected page3 and page4, and in the press talk after program it:

if(¤t.datapage = &qtdBilhete)
execpage('Page3')
showpage()
execpage('Page4')
showpage()
clearpage()
else()
clearpage()
endif()

in Page1 put it:
if(¤t.datapage = 1)
&qtdBilhete:=strtoint(field(fieldname(31),1))
elseif(¤t.datapage = &qtdBilhete+1 )
&qtdBilhete:=&qtdBilhete+strtoint(field(fieldname(31),1))
endif()

Top
Page 2 of 2 < 1 2