# How to change the default value of a button from false to true

**URL:** <https://discourse.mcneel.com/t/how-to-change-the-default-value-of-a-button-from-false-to-true/107926>\
**Category:** Human UI\
**Created:** [September 1, 2020, 1:06am UTC](https://discourse.mcneel.com/t/how-to-change-the-default-value-of-a-button-from-false-to-true/107926 "2020-09-01T01:06:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcmcdougle](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rcmcdougle/32/476089_2.png) [@rcmcdougle](https://discourse.mcneel.com/u/rcmcdougle)\
**Post date:** [September 1, 2020, 1:06am UTC](https://discourse.mcneel.com/t/how-to-change-the-default-value-of-a-button-from-false-to-true/107926/1 "2020-09-01T01:06:29Z")

</div>

I’m using the button component in Human UI and the default value is False. I need it to be true. How?

TIA ~ Robb

---

<div class="post-metadata">

**Author:** ![andheum](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andheum/32/743341_2.png) [@andheum](https://discourse.mcneel.com/u/andheum)\
**Post date:** [September 1, 2020, 2:14pm UTC](https://discourse.mcneel.com/t/how-to-change-the-default-value-of-a-button-from-false-to-true/107926/2 "2020-09-01T14:14:23Z")

</div>

Buttons don’t store a value. They are true when pressed, and false when not pressed. You could invert the value after the value listener, or use a “true only button” component which only outputs a new true when pressed. If neither of those solve your problem I’ll need a little more context 🙂

---

<div class="post-metadata">

**Author:** ![rcmcdougle](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rcmcdougle/32/476089_2.png) [@rcmcdougle](https://discourse.mcneel.com/u/rcmcdougle)\
**Post date:** [September 1, 2020, 3:01pm UTC](https://discourse.mcneel.com/t/how-to-change-the-default-value-of-a-button-from-false-to-true/107926/3 "2020-09-01T15:01:55Z")

</div>

How would I invert the value? I can’t find a component that does that.  
I’m using the button to trigger a re-read of an Excel file.

---

<div class="post-metadata">

**Author:** ![rcmcdougle](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rcmcdougle/32/476089_2.png) [@rcmcdougle](https://discourse.mcneel.com/u/rcmcdougle)\
**Post date:** [September 1, 2020, 3:59pm UTC](https://discourse.mcneel.com/t/how-to-change-the-default-value-of-a-button-from-false-to-true/107926/4 "2020-09-01T15:59:31Z")

</div>

I just found the Invert on the parameter menu… Sorry for the confusion, it has been a while since I was this deep in Grasshopper.
