Skip to main content
Axle
Aug 25, 2023 4:51 AM UTC

Boolean variables > Support for toggling value

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

Sep 13, 2023 12:04 AM UTC

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.

Sep 13, 2023 10:35 PM UTC

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
Oct 19, 2023 5:19 AM UTC

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

Henrik_Orre1
New Member
Dec 6, 2023 11:43 AM UTC

+1, this would make boolean variables so much better

joaopesceofc
Jan 23, 2024 2:32 PM UTC

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
Feb 7, 2024 12:50 AM UTC

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

Oliver_Kierepka1
Nov 18, 2024 10:16 PM UTC

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