Code Comments
Programming Forum and web based access to our favorite programming groups.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?
>=20
> --
> John C. Nichel
> =DCberG
> KegWorks.com
> 716.856.9675
> john@kegworks.com
>=20
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
>
Post Follow-up to this messageRobert Amos wrote:
> you can use almost any simple php expression inside an {if} statement.
>
> So:
>
> {if is_int($var)}
> do stuff
> {/if}
>
> will work fine.
>
> -bok
Thanks Robert...just what I need.
--
John C. Nichel
ÜberG
KegWorks.com
716.856.9675
john@kegworks.com
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.