Compare tags from all songs within an album

Hi, I have a niche scenario where I want to code an action that looks to see if the ARTIST tag of all the songs within an album have the same value. I want to do this so that if an album has the same exact artists on all songs, I can copy that value to the ALBUMARTIST tag (for indexing purposes). I can easily create an action to copy the ARTIST to ALBUMARTIST tag, however I want to ensure that all songs within the album have the same exact artists (otherwise some songs might have different album artists).

Is there an easy way to compare tag values for all songs in a given album?
Thanks.

No.
MP3tag does not compare data from different files.
You can, though, compare the data in a file with e.g. the data in the folder name.

Please note that there are definitely tracks in an album that have different artists. Most straightforward: samplers.
But also an album like "So" by Peter Gabriel on which he has a duet with Kate Bush.

Also, there are albums that may have the same data like "Greatest Hits", "Gold" or "Best of" - but they come from different artists.
So I guess that you have to treat each album individually.

That is not possible with an Action as @ohrenkino told you.

But you can select all tracks from the same album and the have a look at the left side Tag Panel.
If the field ARTIST looks like this and shows < keep >
image

then you have multiple different artist values for the selected tracks.

If you see an artist name like ABBA, then all selected tracks have the same value.

Thanks for your inputs. I've been doing this check manually by selecting all album tracks and looking at the ARTIST field, just wanted to see if there was any way to automate this.

If you have the artist's name in the folder name, then you can automate this.