Think/Template/TagLib/Cx.php
public function _notempty(array $tag = [], $content = '')
    {
        $name = $tag['name'];
        $name = $this->autoBuildVar($name);

        return '<?php if(!empty('.$name.')): ?>'.$content.'<?php endif; ?>';
    }
public function _notempty(array $tag = [], $content = '')
    {
        $name = $tag['name'];
        $name = $this->autoBuildVar($name);

        return '<?php if(!empty('.$name.')): ?>'.$content.'<?php endif; ?>';
    }
如果某个变量不为empty则输出内容

@param array $tag
@param string $content

@return string