Re: [SMARTY] Boolean to string

From: Date: Sun, 21 Mar 2004 13:13:29 +0000
Subject: Re: [SMARTY] Boolean to string
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11153@lists.php.net to get a copy of this message
Hi, > I am wondering if there is a way in Smarty to convert a boolean value to > its string representation (ie 'True' or 'False'). Why not using something like this: {if $VAR} True {else} False {/if} Quick and dirty... I guess there is a much nicer possibility to do so, but I think that should do it... Sincerly Patrick -- Patrick Pletscher http://www.galaxysoft.ch

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