Eliminate discnumber and totaldiscs if 0 or 1

Try $if($eq(%totaldiscs%,1),$unset(discnumber))

From this topic: Remove disc number tag