Skip to main content
1-Visitor
January 13, 2015
Question

Check counter in styledesc?

  • January 13, 2015
  • 2 replies
  • 853 views

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

    1-Visitor
    January 14, 2015
    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?
    cleccese1-VisitorAuthor
    1-Visitor
    January 14, 2015

    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.