Script function: if true, skip and do not operate on file

tldr: is there a function or another way of accomplishing this:
$if(X,SKIP-THIS-FILE-DURING-BULK-EDIT,Y)

My use-case is for files that lack complete metadata, but already have a valid filename; I would not like to touch these.

$if($eql(%albumartist%,),$if($eql(%artist%,),%album%-,%artist%-),%albumartist%-)

Above is how I initially started to try and solve this problem, a string of if statements to cycle through albumartist then artist then album if the previous were blank, but if all of these are blank I will ultimately run into the same issue. I’d like to surround this entire statement in another statement that says, “if blank, then just don’t edit the file cuz id like to go back over this manually.”

Edit: I suppose technically a (bad?) workaround is to create a custom metadata field where I could store the original filename before making any edits.

I would use a filter.
%artist% PRESENT OR %albumartist% PRESENT OR %album% PRESENT
or the inverted list
%artist% MISSING AND %albumartist% MISSING AND %album% MISSING
To check if files have no tag data at all:
%_TAG% MISSING
There is currently no way in an action group to skip a block of instruction due to a previously issued conditition.

ah sweet, didnt even realize i could filter like that, thx lol. ill have to check this out then Filter and Search – Mp3tag Documentation