Need a script to change years of albums

I find that the Actions groups are fine for correcting short strings in specified fields and so forth, but I was wondering if there was a way to do the following in an Actions group:

CHANGE year IF albumartist="" AND album=""

This way, I could more or less automate the process rather than going through all my tracks and doing it manually.

Is there a way of doing this?

EDIT: Never mind, I'm going to do away with the years of my albums altogether, as there seems to be a massive inconsistency about where they came from, and there's even a few typos there.

If anything, I find Years for albums to be quite useless, and as for Genres, even more so. So I'm going to use "Remove Fields" on those two from now on. It's my collection, I can do what I like with it :wink: