# Item::has\_label() inconsistent behavior?

**URL:** <https://discourse.cataclysmdda.org/t/item-has-label-inconsistent-behavior/27145>\
**Category:** The Toolbox\
**Created:** [October 9, 2021, 12:00am UTC](https://discourse.cataclysmdda.org/t/item-has-label-inconsistent-behavior/27145 "2021-10-09T00:00:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProfoundDarkness](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/profounddarkness/32/2581_2.png) [@ProfoundDarkness](https://discourse.cataclysmdda.org/u/ProfoundDarkness)\
**Post date:** [October 9, 2021, 12:00am UTC](https://discourse.cataclysmdda.org/t/item-has-label-inconsistent-behavior/27145/1 "2021-10-09T00:00:37Z")

</div>

It _seems_ like item::has\_label() has different behavior if called from within the item class vs outside the item class. In particular it always seems to return false from outside the item class while behaving as expected from within. Pretty sure has\_label() is a public member of the item class.

I don’t know if own incompetence or something genuinely off, thought I should say something in case of the latter. I ended up uncertain about the code when I tried inserting has\_label() calls into other code which already had an item object it was working with. Still came back false. The debugger I’m using _REALLY_ doesn’t like trying to step into has\_label() so I stopped trying.
