Rename subfolders for discs for multi-disc compilations

I would like to modify the script here (or something like this) to account for the fact that sometimes I have multi-disc compilations. I'd like each disc in its own subfolder e.g. /albumartist/album/disc1/tracks.

how do I modify this so that if the discnumber is greater than one, then add the disc number as a subfolder, but if it is less than two, ignore it.

This would mean that if you have disc 1/2 the files would stay in the top folder but those for disc 2/2 would be moved to the subordinate folder?

Filter for the files that have a fitting discnumber.
Then try the format string:
%albumartist%\%album%\%discnumber%\%title%

If you have filled the discnumber only for albums where there are more than 1 disc and left it out for single disc albums, then you could leave out the filter and try:
%albumartist%\%album%\[%discnumber%\]%title%