Set a default Value in a Tag if it's not populated

Hi Forum,

I'm writing the DISCNUMBER and TOTALDISCS tags that are used in iTunes among others. I'm using Pufas DiscOgs script to import them. Not all pages on DiscOgs have these tags and for those I need an Action that if the DISCNUMBER and TOTALDISCS tags are empty puts 1 in both as the default value. I have not found any RegEx that does that, but then again I'm really not very good at it.

Thanks and Regards.

Action type: Format value
Format string: $if2(%discnumber%,1)

Thanks! :smiley: