Re: [htmltmpl] TMPL_IF and TMPL_ELSE - how do I use this?
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2004-02-17 20:00:12
|
On Tue, Feb 17, 2004 at 11:32:43AM -0800, LDT wrote: >How do I set up a variable that the TMPL_IF and TMPL_ELSE can use to determine which section of the HTML loop to process? Set a new variable in the hash that forms the entry in @loop_data. Set it to "1" for the special mode, and don't set it at all (or set it to "" or 0) for the normal mode. If you post code fragments I'll show you how this can be done. Without seeing your specific coding style, I can't do any better than the various examples that are in the list archive. Roger |