Try $if($eq(%totaldiscs%,1),$unset(discnumber))
$if($eq(%totaldiscs%,1),$unset(discnumber))
From this topic: Remove disc number tag