0 votes
I would like to do something like the following in my local FRT, but cannot find enough documentation to know how to do it:

If the zvar "version-name"  = "readers version", then output \pb. Else, output \zNeedOddPage
I found enough documentation on this subject on github and PTXprint technical reference to know it should be possible, but with no examples, it is hard to know what to do.
PTXprint by (206 points)

1 Answer

0 votes
You can't easily check the content of zvars, at the moment, sorry, it is only testing to see if the value has been set or unset (and what set-but-empty counts as).
This might work, it takes advantage of \zifvarset setting \tmp to be the variable's value internally, if it is configured...

\let\tmp\empty
\def\readersversion{readers version}
\zifvarset|version-name\*
\ifx\tmp\readersversion
%READERS VERSION STUFF HERE
\else
% Default case here.
\fi
by (1.1k points)

Related questions

0 votes
2 answers
0 votes
3 answers
0 votes
3 answers
0 votes
2 answers
Paratext Apr 18, 2023 asked by goodgoan (347 points)
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
3,033 questions
5,988 answers
5,657 comments
2,020 users