Re: [SMARTY] checking if a variable is set
| From: | messju mohr | Date: | Tue, 16 Mar 2004 18:23:27 +0000 |
| Subject: | Re: [SMARTY] checking if a variable is set | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11129@lists.php.net to get a copy of this message | ||
On Tue, Mar 16, 2004 at 07:19:19PM +0100, Gergely Drapos wrote:
> Hi,
>
> I want to check if a given array element has been set ($pictures.id).
>
> Is there an "elegant" way to do this (like isset() in PHP) or do I have to
> stick to
>
> {if $pictures.id}
> ... code ...
> {/if}
{if isset($pictures.id)}
... code ...
{/if}
greetings
messju
> Thanks in advance,
> Gergely