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

Check counter in styledesc?

Regular Member

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.

Tags (2)
2 REPLIES 2

RE: Check counter in styledesc?

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?

RE: Check counter in styledesc?

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.