See the section on variable interpolation in the TT manual.
In reply to Re: Re: Re: Template Toolkit and booleans by perrin in thread Template Toolkit and booleans by talexb