# Change variable value inside formula?

**URL:** <https://community.weweb.io/t/change-variable-value-inside-formula/9317>\
**Category:** How do I?\
**Created:** [June 24, 2024, 10:10pm UTC](https://community.weweb.io/t/change-variable-value-inside-formula/9317 "2024-06-24T22:10:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unlustucru](https://avatars.discourse-cdn.com/v4/letter/u/e36b37/32.png) [@unlustucru](https://community.weweb.io/u/unlustucru)\
**Post date:** [June 24, 2024, 10:10pm UTC](https://community.weweb.io/t/change-variable-value-inside-formula/9317/1 "2024-06-24T22:10:13Z")

</div>

I’d like to change a variable value inside a formula.

I’ve tried this but it doesn’t set the value, rather returns “false”:  
`myVariable` `=` “value”

How do I do this? Or do I have to use a dedicated workflow?

---

<div class="post-metadata">

**Author:** ![Miguel](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@Miguel](https://community.weweb.io/u/Miguel)\
**Post date:** [June 27, 2024, 6:56pm UTC](https://community.weweb.io/t/change-variable-value-inside-formula/9317/2 "2024-06-27T18:56:01Z")

</div>

Inside a formula the = sign is comparing it to something so it will return true or false.

You will need to do it in a workflow.  
If you do it in custom JS this will work  
**wewebVariable = ‘value’**

Or

Add a ‘Change Variable Value’ action and change the variable there
