Answers for "smarty elseif"

PHP
0

smarty if

{if isset($name) && $name == 'Blog'}
     {* do something *}
{elseif $name == $foo}
    {* do something *}
{/if}

{if is_array($foo) && count($foo) > 0}
    {* do a foreach loop *}
{/if}
Posted by: Guest on October-08-2020

Browse Popular Code Answers by Language