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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Check counter in styledesc?

cleccese
6-Contributor

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?
cleccese
6-Contributor
(To:cleccese)

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.

Top Tags