Index: texinfo.txi =================================================================== RCS file: /cvsroot/texinfo/texinfo/doc/texinfo.txi,v retrieving revision 1.147 diff -u -3 -p -w -u -r1.147 texinfo.txi --- texinfo.txi 6 Jul 2005 00:34:16 -0000 1.147 +++ texinfo.txi 17 Aug 2005 20:24:45 -0000 @@ -12935,6 +12935,9 @@ is ignored. If @var{flag} is clear, tex @code{@@end ifclear} command is formatted. @end table +When nesting @code{@@ifclear} and/or @code{@@ifset}, the text is formatted +or ignored until the @code{@@end} at the same nesting level. + @menu * set value:: Expand a flag variable to a string. * ifset ifclear:: Format a region if a flag is set. @@ -13097,6 +13100,18 @@ command looks like this: @@ifclear @var{flag} @end example +When nesting @code{@@ifclear} and/or @code{@@ifset} the nesting is +taken into account when ignoring some text. For example the following +code is valid, and if @code{a_flag} is unset the text is ignored up +to the second @code{@@end ifset} and not up to the first. + address@hidden +@@ifset a_flag +@@ifset another_flag +This text is output if both flags are set. +@@end ifset +@@end ifset address@hidden example @node value Example @subsection @code{@@value} Example