# Return a number tag from a Homey script - How?

**URL:** <https://community.homey.app/t/return-a-number-tag-from-a-homey-script-how/148145>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [December 30, 2025, 11:40am UTC](https://community.homey.app/t/return-a-number-tag-from-a-homey-script-how/148145 "2025-12-30T11:40:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jumpingtrees](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumpingtrees/32/79538_2.png) [@Jumpingtrees](https://community.homey.app/u/Jumpingtrees)\
**Post date:** [December 30, 2025, 11:40am UTC](https://community.homey.app/t/return-a-number-tag-from-a-homey-script-how/148145/1 "2025-12-30T11:40:45Z")

</div>

Hello,

it seems that I can [return a number tag when running a Homey script from an advanced flow](https://homey.app/en-us/features/advanced-flow/#:~:text=Create%20and%20run%20HomeyScripts%20right,in%20the%20following%20Flow%20cards.).

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cd5ab269674df54afe2708920d6fc4ee0877dd55.png)

I am struggling with that. The only then-card I have is “run script with argument”. What am I missing? Does anybody has a hint or a simple example for me?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c94b5700f1d4d5137b2e20b155f1c63bb42a62b0.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 30, 2025, 11:51am UTC](https://community.homey.app/t/return-a-number-tag-from-a-homey-script-how/148145/2 "2025-12-30T11:51:52Z")

</div>

Scripts run standalone, you can’t return anything from them. For that, you need to pick one of the “Run (Code)” cards (what the linked-to page calls “Inline HomeyScript”).

You can set tags from scripts using the [`tag()` function](https://athombv.github.io/com.athom.homeyscript/global.html#.tag).

---

<div class="post-metadata">

**Author:** ![Jumpingtrees](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumpingtrees/32/79538_2.png) [@Jumpingtrees](https://community.homey.app/u/Jumpingtrees)\
**Post date:** [December 30, 2025, 11:59am UTC](https://community.homey.app/t/return-a-number-tag-from-a-homey-script-how/148145/3 "2025-12-30T11:59:15Z")

</div>

Thank you!
