# A temporary tag for internal use in a script only?

**URL:** <https://community.metabrainz.org/t/a-temporary-tag-for-internal-use-in-a-script-only/433558>\
**Category:** MusicBrainz Picard\
**Created:** [June 28, 2019, 4:36pm UTC](https://community.metabrainz.org/t/a-temporary-tag-for-internal-use-in-a-script-only/433558 "2019-06-28T16:36:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiccup](https://community.metabrainz.org/user_avatar/community.metabrainz.org/hiccup/32/5512_2.png) [@hiccup](https://community.metabrainz.org/u/hiccup)\
**Post date:** [June 28, 2019, 4:36pm UTC](https://community.metabrainz.org/t/a-temporary-tag-for-internal-use-in-a-script-only/433558/1 "2019-06-28T16:36:03Z")

</div>

Quick question,

I seem to remember that there is a scripting function that enables you to create a temporary tag in your script that will only be used internally for that script, and that won’t actually write a tag.

You can of course use $set(temp\_name,value) in the beginning of the script, and then $unset(temp\_name) at the end, but wasn’t there a specific function for this?

edit,  
Ah, never mind, I just remembered. An underscore before the name will do that.

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [June 28, 2019, 5:31pm UTC](https://community.metabrainz.org/t/a-temporary-tag-for-internal-use-in-a-script-only/433558/2 "2019-06-28T17:31:44Z")

</div>

Prefix the tag name with an underscore, e.g.

```auto
$set(_mytemptag,some value)

```

---

<div class="post-metadata">

**Author:** ![hiccup](https://community.metabrainz.org/user_avatar/community.metabrainz.org/hiccup/32/5512_2.png) [@hiccup](https://community.metabrainz.org/u/hiccup)\
**Post date:** [June 28, 2019, 5:34pm UTC](https://community.metabrainz.org/t/a-temporary-tag-for-internal-use-in-a-script-only/433558/3 "2019-06-28T17:34:21Z")

</div>

Thanks outsidecontext.  
But my brain-freeze luckily only lasted shortly.

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [June 28, 2019, 5:42pm UTC](https://community.metabrainz.org/t/a-temporary-tag-for-internal-use-in-a-script-only/433558/4 "2019-06-28T17:42:21Z")

</div>

I should probably start reading the latest message before replying instead of relying on the original text I got emailed 🙂
