Skip to main content
Axle
August 25, 2023

Boolean variables > Support for toggling value

  • August 25, 2023
  • 7 replies
  • 2024 views

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

September 13, 2023

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.

September 13, 2023

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
AxleAuthor
October 19, 2023

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

Henrik_Orre1
New Member
December 6, 2023

+1, this would make boolean variables so much better

joaopesceofc
January 23, 2024

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
AxleAuthor
February 7, 2024

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

Oliver_Kierepka1
November 18, 2024

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