Skip to main content

Boolean variables > Support for toggling value


Axle

It would be nice if we can toggle a boolean variable easily instead of having to use conditional.

Example solutions:

  1. Set variable [variable_name] to [!variable_name]
    image
  2. Set variable [boolean_variable] to [true, false, toggle]

7 replies

The ability to have the Boolean event be toggle would be amazing. Right now you can only set the Boolean to true or false with a click. With successive clicks you can’t turn it back off - hence the need for the option of Toggle. Updated to note that yes, you can use conditional functionality to make this happen but having it be a single select option is ideal.


To create toggle functionality, you can add a conditional to check the current state of the object, and then set the boolean to whatever state it currently is/is not. It’s extra work, but it does the job 🙂


Axle
  • Author
  • 3 replies
  • October 19, 2023

Yup, but it would be better if we can toggle it easily instead of using conditional.


Henrik_Orre1

+1, this would make boolean variables so much better


joaopesceofc

This is now possible (not sure if it’s a new feature):

Simply add not or ! before the variable

Here it is in action:


Axle
  • Author
  • 3 replies
  • February 7, 2024

Not sure if this existed when I posted this, but thanks! This should do the trick.


Oliver_Kierepka1

Please allow the “not operator” in setting boolean variable values.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings