RE: [htmltmpl] TMPL_IF truth vs definition
Brought to you by:
samtregar
From: Tugrul G. <tu...@ga...> - 2002-06-21 17:04:11
|
On Fri, 2002-06-21 at 12:43, Kenny Smith wrote: > Hi Tugrul, > > I normally don't jump in on these conversations, but are you really > suggesting that TMPL_IF be true if the value of the variable is 0? 0 = true > goes against everything computers stand for. > Gah, I should have just made a local hack and kept quiet. 0 might be false to you and me, but to some people its STILL data. If I have some HTML appear only when certain variables are set, instead of creating lots of new boolean variables (since I don't know where a zero might rear its ugly head), I want to just check if the variable is set. Tugrul Galatali |