# Function property returns raw integer 0 instead of enum display name (only for the value‑0 enum member)

**URL:** <https://community.appfarm.io/t/function-property-returns-raw-integer-0-instead-of-enum-display-name-only-for-the-value-0-enum-member/2368>\
**Category:** Bug reports\
**Created:** [May 29, 2026, 10:41am UTC](https://community.appfarm.io/t/function-property-returns-raw-integer-0-instead-of-enum-display-name-only-for-the-value-0-enum-member/2368 "2026-05-29T10:41:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/michael/32/2883_2.png) [@michael](https://community.appfarm.io/u/michael)\
**Post date:** [May 29, 2026, 10:41am UTC](https://community.appfarm.io/t/function-property-returns-raw-integer-0-instead-of-enum-display-name-only-for-the-value-0-enum-member/2368/1 "2026-05-29T10:41:16Z")

</div>

I think I’ve run into a bug in how a function property resolves enum display names when the enum member’s integer value is `0`.

When using a simple runtime function property

`return enumName`

(enumName is the enum\_name value component, so it should return the display name)

The enum is integer based starting at 0

**Expected:** every row shows the enum display name

**Actual:** rows where _enum_Value = `0` show `0` instead of `"enumDisplayName"`. Every other value resolves its name correctly, only the `0`‑valued member fails.

I suspect it is because 0 is falsy in JS?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/7/79e78ee3b08c2ced27381cda68de83d7637bc082.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/0/0540a961bb644eed5e57a2f8e88c42d49168c547.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/2/278e7d1ad42602d7643c72626f004fcc81aa2dbf.png)

---

<div class="post-metadata">

**Author:** ![Sigurd\_Hanstad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurd_hanstad/32/3046_2.png) [@Sigurd\_Hanstad](https://community.appfarm.io/u/Sigurd_Hanstad)\
**Post date:** [June 15, 2026, 7:34am UTC](https://community.appfarm.io/t/function-property-returns-raw-integer-0-instead-of-enum-display-name-only-for-the-value-0-enum-member/2368/2 "2026-06-15T07:34:55Z")

</div>

Hi Michael

Thank you for reporting this. I have recreated the issue and registered it as a bug for our devs to take a look at.

Have a nice day!
