Ok, i'm trying to make the first radio button of an array checked using SMARTY.
Example:
{section name=cc loop=$OPTIONS}
<input type="radio" name="{$OPTIONS[cc].Name}" value="{$OPTIONS[cc].Value}">
{/section}
Now what I want is something like this.. but it doesn't work.
{section name=cc loop=$OPTIONS}
{if $OPTIONS[cc] == 0}
<input type="radio" name="{$OPTIONS[cc].Name}" value="{$OPTIONS[cc].Value}" checked>
{else}
<input type="radio" name="{$OPTIONS[cc].Name}" value="{$OPTIONS[cc].Value}">
{/if}
{/section}
So that the first radio button is checked.
Any ideas?
Thanks!
Matt