Re: Some ways to improve it?

From: Date: Wed, 05 Dec 2001 17:51:08 +0000
Subject: Re: Some ways to improve it?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2151@lists.php.net to get a copy of this message
I'll answer myself ... one way I just discovered is simply: {assign var="last" value=0} {assign var="last" value=$smarty.get.last} But it is not so clear to read ... El mié, 05-12-2001 a las 18:09, Ricard Pillosu escribió: > Just wondering how to improve something like this: > > {if $smarty.get.last == ""} > {assign var="last" value="0"} > {else} > {assign var="last" value=$smarty.get.last} > {/if} > > code explains itself ... -- Ricard Pillosu González New Tech. Software Engineer Dorna Sports, S.L. ricardpillosu@dorna.es http://www.motograndprix.com Tel. +34 934702865

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