Re: [SMARTY] Variable type in smarty?

From: Date: Thu, 26 Aug 2004 22:38:26 +0000
Subject: Re: [SMARTY] Variable type in smarty?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11728@lists.php.net to get a copy of this message
you can use almost any simple php expression inside an {if} statement. So: {if is_int($var)} do stuff {/if} will work fine. -bok On Thu, 26 Aug 2004 17:16:35 -0400, John Nichel <john@kegworks.com> wrote: > I've looked all thru the manual and can't find any type of function to > determine if a variable is an integer in smarty. Is this possible? > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > john@kegworks.com > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#11728) next »