# OH4.2.0 oh-button actionVariable on multiple variables at once

**URL:** <https://community.openhab.org/t/oh4-2-0-oh-button-actionvariable-on-multiple-variables-at-once/157262>\
**Category:** Beginners\
**Tags:** widget, oh-button, openhab4\
**Created:** [July 17, 2024, 12:00pm UTC](https://community.openhab.org/t/oh4-2-0-oh-button-actionvariable-on-multiple-variables-at-once/157262 "2024-07-17T12:00:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mark\_VG](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@Mark\_VG](https://community.openhab.org/u/Mark_VG)\
**Post date:** [July 18, 2024, 6:14am UTC](https://community.openhab.org/t/oh4-2-0-oh-button-actionvariable-on-multiple-variables-at-once/157262/3 "2024-07-18T06:14:15Z")

</div>

Hi Justin

Thanks as usual, I do remember seeing that post, but didn’t thin of it.

> [@JustinG](#):
>
> However, down at the end of the post, there’s a concluding paragraph on possible combinations of actions and it mentions that if you want multiple variables, you can just use a single object with multiple keys as the variable.

> [@Multiple Widget Actions](https://community.openhab.org/t/multiple-widget-actions/144327/1):
>
> If you’re setting more than one variable then maybe it’s easier to make that variable an object with multiple keys.

Could you expand on that? I like that idea but have no idea how to do that? And how you would send the vale to all of the objects with keys?

I will play around with the first option in the meantime.

---

_[View the full topic](https://community.openhab.org/t/oh4-2-0-oh-button-actionvariable-on-multiple-variables-at-once/157262)._
