Hello I have this array
PHP Code:
if ( empty($array['thread_link']) ){
$array['thread_link'] = 0;
}
and it is defined by
PHP Code:
'thread' => $array['thread_link'],
I am trying to create the condition
HTML Code:
<vb:if condition="$rep.thread != 0">
<td style="padding : 3px;"><a href="{$rep.thread}">View</a></td>
<vb:else />
<td style="padding : 3px;">n/a</td>
</vb:if>
but it doesnt work and only shows "n/a" on everyone where it should show a thread link for some.
is there another way i can say if $rep.thread doenst = 0 then show the thread link?