Linking variables?

Hi there.

Is there a way to link multiple variables together? Like right now I have a bunch of Boolean variables, but only want one of them to be true at a time. So is there a way to do it so that when one is set to true the rest are set to false, or do I have to manually do that?

Thanks.

Probably manually. For doing this in python, I would write a function (using “def”) to set all of the booleans to “false”. Then when I’m writing the rest of the script, if I know there may be a change, I will set all of them to false, and then set the one I want to true. Or you could create another variable to keep track of which boolean is true. So for a change, set that old variable to false, then set the new one true and store the new name.

So python looks to be the way to go. Thanks.

Ok well I have no idea what I’m doing when it comes to python, so could someone maybe give me a hand setting properties with python?