[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.10 Quoting input to T4

If you want to change the order of control sequences to be expanded, you can use \'. \' delays expansion of the following macro:

 
\set{foo}{0}
=>1

\'\incr\get{foo}
(=>\incr{0})
=>1

In this example, \get{foo} is expanded first. Next, the result ("0") is incremented by \incr.

Here is another example. Even though you have seen the first argument of \ifelse is treated as literal, you can force expand it by using \'.

 
\'\'\'\ifelse\'\incr\get{foo}{1}{bar}{baz}
(=>\'\ifelse\incr{0}{1}{bar}{baz})
(=>\ifelse{1}{1}{bar}{baz})
=>bar



This document was generated on February, 23 2003 using texi2html