On Fri, 18 Oct 2002, Stathy G. Touloumis wrote:

> Sorry if this has been asked numerous times before, just did not find 
> anything in docs.  Is there a way to test whether a variable is 'undef' as 
> opposed to just 'false'?

http://www.tt2.org/docs/leon/Manual/VMethods.html#Scalar_Virtual_Methods

 * defined

   Returns true if the value is defined

   [% user = get_user(uid) IF uid.defined %]

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to