Mel command for padding a filename

hi !
i would like to perform a test after rendering an animation in order to check if all the frames were computed ...
i would like to make some loop with the "filetest" command

for($i=$startFrame;$i{
$fileToTest = $filename + $i + $extension;
if(!filetest -f $fileToTest)
{
print($fileToTest );
}
}

is there a command or a tip in order to pad the filename i am going to pass to "filetest" ?

something like :
$fileToTest = $filename + padd($i, $pad) + $extension;
with $pad = the number of zero i want

thanx in advance
b

There's no mel command that I know of do do that, but it you could very easily write it yourself. Just test the size of $i and if it's <100 add a 0, and <10 add 2 0's.

dont know why ... i feel like being stupid
we will say that i was too tired to think about it ...
thanx