Total Size in if function doesn't work?


#1

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>

#2

%_total_size% for a $loop() is only available outside of this loop.


#3

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 ")".