public function ifNot($var, $default = '', $filter = null)
    {
        $raw = $this->raw($var, false, $filter);

        return empty($raw) ? $this->returnDefault($default) : '';
    }
public function ifNot($var, $default = '', $filter = null)
    {
        $raw = $this->raw($var, false, $filter);

        return empty($raw) ? $this->returnDefault($default) : '';
    }
public function ifNot ( $ var , $ default = '' , $ filter = null ) { $ raw = $ this -> raw ( $ var , false , $ filter ) ; return empty ( $ raw ) ? $ this -> returnDefault ( $ default ) : '' ; }
If a value from template context, isn't set or is empty return whatever passed as default.

@param  string       $var     Variable name
@param  mixed        $default Default
@param  string|array $filter  Array or pipe-separated list of filters
@return mixed
If a value from template context isn t set or is empty return whatever passed as default .