# Hoe controleer ik of de topic tags tag id abczxyz bevatten?

**URL:** <https://meta.discourse.org/t/how-to-check-if-the-topic-tags-include-tag-id-is-abczxyz/187891>\
**Category:** Development\
**Created:** [23 april 2021 om 11:18 UTC](https://meta.discourse.org/t/how-to-check-if-the-topic-tags-include-tag-id-is-abczxyz/187891 "2021-04-23T11:18:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [23 april 2021 om 11:18 UTC](https://meta.discourse.org/t/how-to-check-if-the-topic-tags-include-tag-id-is-abczxyz/187891/1 "2021-04-23T11:18:15Z")

</div>

This my code:

```plaintext
<% if ( @topic_view.topic.tags.length > 0 and @topic_view.topic.tags.include? "abcxyza" ) %>
SOME THING
<% else %>

```

Full code: [here](https://github.com/bcat95/discourse-tvms-amp/blob/master/app/views/connectors/topic_header/tvms_amp.html.erb)

And is it wrong to make the site inaccessible?

Can you give me the correct code to check that article tags have an id tag named “abcxyz”?

---

_[View the full topic](https://meta.discourse.org/t/how-to-check-if-the-topic-tags-include-tag-id-is-abczxyz/187891)._
