Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if condition in smarty

{if $userroleid eq 12 || $userroleid eq 13 || $userroleid eq 14 }
    <a href="{$v.feature_url}" class="re-upload"> View</a>
{else}
    <a href="{$v.feature_url}" class="re-upload"> Re-upload</a>
{/if}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #condition #smarty
ADD COMMENT
Topic
Name
7+5 =