# Documentation for 'ifoutput' and 'ifnotoutput'

**URL:** <https://community.mp3tag.de/t/documentation-for-ifoutput-and-ifnotoutput/19106>\
**Category:** Web Sources Discussion\
**Created:** [June 30, 2017, 11:11pm UTC](https://community.mp3tag.de/t/documentation-for-ifoutput-and-ifnotoutput/19106 "2017-06-30T23:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [June 30, 2017, 11:11pm UTC](https://community.mp3tag.de/t/documentation-for-ifoutput-and-ifnotoutput/19106/1 "2017-06-30T23:11:23Z")

</div>

Whats the correct syntax for the two new web sources framework functions  
'ifoutput' and 'ifnotoutput'.

Is there an argument to be used along with them?

My try:

```
outputto "ARTIST"
ifoutput "ALBUMARTIST"
say "something smart"
```

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [July 1, 2017, 3:07am UTC](https://community.mp3tag.de/t/documentation-for-ifoutput-and-ifnotoutput/19106/2 "2017-07-01T03:07:50Z")

</div>

Yes. They both take the name of a previously used output as parameter and have to be closed with endif.

> [@](#):
>
> **IfOutput** S Check for content in output buffer named S.  
> **IfNotOutput** S Check for absence of content in output buffer named S.

```
outputto "coverurl"
ifoutput "TMP_SECONDARY"
    set "coverurl"
    sayoutput "TMP_SECONDARY"
    set "TMP_SECONDARY"
endif

```

I'll update the documentation accordingly.

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [July 1, 2017, 8:29am UTC](https://community.mp3tag.de/t/documentation-for-ifoutput-and-ifnotoutput/19106/3 "2017-07-01T08:29:39Z")

</div>

QUOTE (Florian @ Jul 1 2017, 06:07) \<{POST\_SNAPBACK}\>

Yes. They both take the name of a previously used output as parameter and have to be closed with endif.

```
outputto "coverurl"
ifoutput "TMP_SECONDARY"
    set "coverurl"
    sayoutput "TMP_SECONDARY"
    set "TMP_SECONDARY"
endif

```

I'll update the documentation accordingly.

  
Sweet. Thanks.
