smarty 判断变量是否为空

{if $val.title!=""}

  这里填写想要输出的内容即可

{/if}

原文地址:https://www.cnblogs.com/gaoyinghui/p/3482657.html