Ability to set boolean via an expression

Currently, when using the ‘Modify the boolean value…’ action, you have to specifically choose either True or False. There’s no way to set this value via an expression (i.e. based on the value of another variable, etc.):

image

I tried using ‘Change the value of a variable’ action instead, but while it may work, it technically converts the boolean to a number (0 or 1):

image

So I’d like to request the ability to set boolean variables via expressions.

A boolean under the hood is either a 0 or 1. You can read a boolean as a number (or a string). What you did was correct.

1 Like