# Total Size in if function doesn't work?

**URL:** https://community.mp3tag.de/t/total-size-in-if-function-doesnt-work/3302
**Category:** General Discussion
**Created:** [May 10, 2006, 8:21am UTC](https://community.mp3tag.de/t/total-size-in-if-function-doesnt-work/3302 "2006-05-10T08:21:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![milka](https://community.mp3tag.de/user_avatar/community.mp3tag.de/milka/32/55_2.png) [@milka](https://community.mp3tag.de/u/milka)
#### Post date: [May 10, 2006, 8:21am UTC](https://community.mp3tag.de/t/total-size-in-if-function-doesnt-work/3302/1 "2006-05-10T08:21:56Z")

</div>

I don't know if this is a bug.  
Why %\_total\_size% in if function doesn't work when I try to export it?

```
$filename(TEST.html)<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>TEST</TITLE>

</HAED>
<BODY>
$loop(%_directory%)

$if($eql($folderdepth(%_folderpath%),$folderdepth(%_workingpath%)),,%_total_size%)

$loopend()
</BODY>
</HTML>
```

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 10, 2006, 4:00pm UTC](https://community.mp3tag.de/t/total-size-in-if-function-doesnt-work/3302/2 "2006-05-10T16:00:33Z")

</div>

%\_total\_size% for a $loop() is only available outside of this loop.

---

<div class="post-metadata">

### Author: ![milka](https://community.mp3tag.de/user_avatar/community.mp3tag.de/milka/32/55_2.png) [@milka](https://community.mp3tag.de/u/milka)
#### Post date: [May 16, 2006, 12:18pm UTC](https://community.mp3tag.de/t/total-size-in-if-function-doesnt-work/3302/3 "2006-05-16T12:18:33Z")

</div>

Strange how this work:

```
$filename(TEST.html)<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>TEST</TITLE>
</HAED>
<BODY>$loop(%_directory%)
$if($eql($folderdepth(%_folderpath%),$folderdepth(%_workingpath%)),,$replace((%_total_size%), ,))
$loopend()
</BODY>
</HTML>

```

If only I could remove "(" and ")".
