# How to add tag if empty

**URL:** <https://community.mp3tag.de/t/how-to-add-tag-if-empty/45608>\
**Category:** Web Sources Discussion\
**Created:** [June 4, 2019, 7:26am UTC](https://community.mp3tag.de/t/how-to-add-tag-if-empty/45608 "2019-06-04T07:26:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henriquebs12](https://community.mp3tag.de/user_avatar/community.mp3tag.de/henriquebs12/32/8205_2.png) [@henriquebs12](https://community.mp3tag.de/u/henriquebs12)\
**Post date:** [June 4, 2019, 7:26am UTC](https://community.mp3tag.de/t/how-to-add-tag-if-empty/45608/1 "2019-06-04T07:26:46Z")

</div>

I'm trying to edit the iTunes Source code, because it always copies the value from `Album Artist` to the field `Composer`, which is not correct.

I'd like to check if the Composer field is already empty, and if it's not, just skip doing it (that way it will preserve the composer if it is already present in the file)

```
	outputto "COMPOSER"
	FindLine "\"artistName\":\""
	FindInLine "\"artistName\":\""
	SayUntil "\", \""
	Say "|"

```

The original script is attached just fore checking.

[iTunes#United States of America.src (5.9 KB)](https://community.mp3tag.de/uploads/short-url/7kJpnQ10E3CQxHUBgyLgrJHdcyN.src)

---

<div class="post-metadata">

**Author:** ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)\
**Post date:** [June 10, 2019, 8:52am UTC](https://community.mp3tag.de/t/how-to-add-tag-if-empty/45608/2 "2019-06-10T08:52:27Z")

</div>

You can't check which metadata fields are currently present on an audio file in a Web Source script. A script just parses web information and outputs a series of metadata fields independently from the current file metadata contents.

This feature you are asking for should be implemented in the **Adjust tag information** dialog that is shown after the script has finished parsing a Web Source by allowing the user to choose which tag fields to overwrite and which not. Unfortunately, this is not the case at this moment.
