15.7 Conditional Nesting

Texinfo requires that for a failing conditional, the ignored text must be properly nested with respect to that failing conditional. Here’s an example:

@ifset somevar
@ifset anothervar
Both somevar and anothervar are set.
@end ifset
@ifclear anothervar
Somevar is set, anothervar is not.
@end ifclear
@end ifset

If ‘somevar’ is not set, the whole block is skipped.

To allow the processors to reliably determine which commands to consider for nesting purposes, all conditional commands must be on lines by themselves, with no text (even spaces) before or after.