# Set tag to value of another in script?

**URL:** https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240
**Category:** Web Sources Discussion
**Created:** [February 11, 2008, 9:25pm UTC](https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240 "2008-02-11T21:25:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SimianJones](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@SimianJones](https://community.mp3tag.de/u/SimianJones)
#### Post date: [February 11, 2008, 9:25pm UTC](https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240/1 "2008-02-11T21:25:45Z")

</div>

Is there a way to set the value of one tag to another? For example I have this:

# Album Artist

outputto "Artist"  
findinline ""  
findinline ""  
sayuntil ""

But I also want to set "Band" to the exact same value as "Artist". I tried this:

set "Band" "Artist" # didn't work  
set "Band" %Artist% # didn't work

Other thoughts? Thanks.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 12, 2008, 2:59pm UTC](https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240/2 "2008-02-12T14:59:35Z")

</div>

outputto "Band"  
sayoutput "Artist"

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [September 30, 2009, 6:17am UTC](https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240/3 "2009-09-30T06:17:50Z")

</div>

Dano, if possible, talking little more about this command please.

I see "sayoutput" only in IF operation in custom scripts, but if I want say one output to two or more tags?

# BAND

outputto "Album Artist"  
sayoutput "BAND"  
findinline ""  
sayuntil ""

this didn't work, no value in BAND tag..

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 30, 2009, 6:42am UTC](https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240/4 "2009-09-30T06:42:10Z")

</div>

```
# BAND
outputto "BAND"
findinline "<artist><name>"
sayuntil "</name>"

outputto "Album Artist"
sayoutput "BAND"

```

First fill BAND tag, then copy BAND to Album Artist

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [September 30, 2009, 9:39am UTC](https://community.mp3tag.de/t/set-tag-to-value-of-another-in-script/6240/5 "2009-09-30T09:39:35Z")

</div>

many thanks dano!  
sorry for nub questions ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")
