cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Check counter in styledesc?

cleccese
10-Marble

Check counter in styledesc?

Is there a way to check a page counter in the styledesc?


I'm trying to do this:


<specval attname="wpfolioct.txt" attloc="#FOSI" attval="#GT#\0\"> or


<specval attname="wpfolioct.txt" attloc="#FOSI" attval="#NONZERO">


but I'm getting a message that the content of wpfolioct.txt can't be retrieved.

2 REPLIES 2

Pagedesc variables and styldesc variables are mostly kept separate. Also, note that textids are evaluated as strings not numbers.

You can test a counter in the pagedesc using a pseudo-element in the styldesc, and output gentext, for example. But you can't use the pseudo-element to change the value of a styldesc variable.




...
e-i-c gi=psu






...

And vice versa.











What exactly are you trying to accomplish?

Hi Suzanne, I didn't want to change any values, just test whether the counter was >0 which would affect how I was building a string. But as it turned out I didn't need to check the counter anyway.

Announcements

Top Tags