Re: [SMARTY] concatinating string with variable

From: Date: Sat, 20 Sep 2003 07:32:03 +0000
Subject: Re: [SMARTY] concatinating string with variable
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10245@lists.php.net to get a copy of this message
On Thu, Sep 18, 2003 at 07:47:48PM +0200, Gerard L Petersen wrote: > Hey all > > > How would i test for some thing like this > > {if $duration == $smarty.section.i.index." nights"} > > > eg = "2 nights" i also noticed recently that string-concatenation seems hardly possible in the if syntax. i wonder if the "."-operator should be added to the list of php-operators that are allowed in smarty's {if}. the above would read {if $duration == $smarty.section.i.index . " nights"} then. > for some reason this works > > {if $duration == $smarty.section.i.index} > > > -Gerard L Petersen

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