02-14-2012 05:21 AM
Suppose that I have two boolean controls A and B.
Now I would like to diseble control B and force it to false whenever A=true.
I know I can do it by changing the properties (Value and Disable) of control B through a "Property Node".
Am I right?
Now, what if the two controls are embedded in a cluster? Am I still able to disable one of them depending on the value of the other?
Solved! Go to Solution.
02-14-2012 05:50 AM
02-14-2012 06:03 AM
Hi GerdW,
Thank you for the suggestion.
I agree, but I can use a property node for the cluster as a whole.
I cannot see how can I access the properties of an element of the cluster.
02-14-2012 06:05 AM
Sorry, I've just discovered how to access the properties of an element of a cluster.
Thank you again
02-14-2012 06:11 AM
04-05-2018 07:16 PM
How exactly do you connect that?
04-06-2018 12:40 AM
04-06-2018 06:30 AM
I mean, force boolean b to false whenever A=true; but also being able to control b on its own.
04-06-2018 06:43 AM
Hi Romagallon,
force boolean b to false whenever A=true;
Simple boolean operation:
result := NOT(A) AND B
but also being able to control b on its own.
So you want to be able to switch boolean button B while in parallel reacting on button A?
Two notes:
- use an event structure with a "Value change" event for button A to only rect on actual user input
- set the value and the disabled state of button B in this event as needed
04-06-2018 10:33 AM
But if both are controls, how do i do it?
Are how can a make a boolean control to off after the program stops running or set everything to a certain default state?