private function _setBool($key, $val) {
		if ($key && !$val) {
			$this->_result = preg_replace("/<if\." . $key . ">(.*?)<\/if\." . $key . ">/s", '', $this->_result);
		}
		$this->_result = str_replace("<if." . $key . ">", '', $this->_result);
		$this->_result = str_replace("</if." . $key . ">", '', $this->_result);
	}
private function _setBool($key, $val) {
		if ($key && !$val) {
			$this->_result = preg_replace("/<if\." . $key . ">(.*?)<\/if\." . $key . ">/s", '', $this->_result);
		}
		$this->_result = str_replace("<if." . $key . ">", '', $this->_result);
		$this->_result = str_replace("</if." . $key . ">", '', $this->_result);
	}
private function _setBool ( $ key , $ val ) { if ( $ key && ! $ val ) { $ this -> _result = preg_replace ( "/<if\." . $ key . ">(.*?)<\/if\." . $ key . ">/s" , '' , $ this -> _result ) ; } $ this -> _result = str_replace ( "<if." . $ key . ">" , '' , $ this -> _result ) ; $ this -> _result = str_replace ( "</if." . $ key . ">" , '' , $ this -> _result ) ; }
Template boolean manipulation
@param  string $key     Template key
@param  string $val     Template value
Template boolean manipulation