I mean something like this: TeX - Wikibooks
I found it looking up documentation for \if. I didn't expect to find it to be a WikiBook.
Open the link, scroll down to "TeX Primitives" and click ìf in the third column or use this link: TeX \if.
Requirements to "good documentation":
- online
- structured, hyperlinks
- easy to find, easy to access
- comprehensive, complete
examples
Advanced requirements:- generated from a database
- requirements of use
- used in package, file, line
- peculiarities
- where defined
- where redefined
- importance, statistically determined
- supply of tooltips for typesetting system editors
- links to good blog posts
- links to StackExchange
- maintenance by all users of the community
And for comparison TeX, The Program Index \if section 487:
That doesn't really help me.
And here \if in TeX by Topic:
That's better but in both cases no reference to \else \fi.
Thanks to the hint from Marcel Krüger:
The TeXbook
It looks a lot better.





source2eis exactly what I searched for! So the question was worth it. Thank you! – CarpeDiemKopi Aug 05 '19 at 23:25\ifand variants. Specifically, the\elseand\fithat you say are missing are listed on the very first page of the chapter, then 13.1 explains the general structure of conditionals (including the\fior\else ... \fi), then 13.2 lists specific ones (\if,\ifcatetc), then 13.7 says more about how conditionals are evaluated (skipping until\elseetc). – ShreevatsaR Aug 06 '19 at 04:25\ifand took the first usable result. When I got there I would have had to scroll up a page. I found the right page in "TeX WikiBooks" simply by enteringTeX \ifon google. – CarpeDiemKopi Aug 06 '19 at 04:50\else … \fito be duplicated for each of\if,\ifcat,\ifx,\ifhmode,\ifvmode,\ifvmode,\ifmmode,\ifinner,\ifnum,\ifodd,\ifvoid,\ifhbox,\ifvbox,\ifeof,\ifcase,\iftrue,\iffalse, and custom conditionals defined with\newif, just in case someone looks at only one of them? (If so, I am certain that no documentation with so much redundancy currently exists.) – ShreevatsaR Aug 06 '19 at 05:06\if(this is a generic introduction to the conditionals). You need to look at p. 209 for specific info about each conditional, in particular here about\if. Also, the top of p. 213 (generic) is very important (all in all: pp. 209-213). – frougon Aug 06 '19 at 06:49