Re: [SMARTY] testing if array has elements

From: Date: Fri, 01 Oct 2004 11:32:48 +0000
Subject: Re: [SMARTY] testing if array has elements
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11844@lists.php.net to get a copy of this message
Not really- it still evaluates to true (always). Compiled template is:
What does your template-code look like? What does the array look like? Maybe this helps: { if count ($video.country) != 0} {section name=countries loop=$video.country} Country: {$video.country[countries]} {/section} {else} No countries available! {/if} HTH! -- What's on a developers mind? http://blog.siteartwork.de

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