I’m trying to write a script that will give variable padding to the track number of a file based on the total track number, and it’s stumping me right now. Here’s what I’ve got that’s not working (doesn’t output anything at all):
$pad(%tracknumber%, $if($gte(%totaltracks%,100),3, $if($gte(%totaltracks%,10),2, 1)), 0)
Any ideas? Thanks!