Originally posted by Mark:
Hi,
Another method, using only one button is also possible. Simply have two Assign Value actions, one that sets the variable to 1 and the other that sets the variable to 0. Now the Assign Value action that sets the variable to 1 will have a Boolean condition that the variable does not equal 1 (or that it equals 0). And the Assign Value action that sets the variable to 0 will have a Boolean condition that the variable does not equal 0 (or that it equals 1).
mark.
[This message has been edited by Mark (edited 02-07-2002).]
Hi,
Another method, using only one button is also possible. Simply have two Assign Value actions, one that sets the variable to 1 and the other that sets the variable to 0. Now the Assign Value action that sets the variable to 1 will have a Boolean condition that the variable does not equal 1 (or that it equals 0). And the Assign Value action that sets the variable to 0 will have a Boolean condition that the variable does not equal 0 (or that it equals 1).
mark.
[This message has been edited by Mark (edited 02-07-2002).]
If variable is first 0, on first click:
(I) If var. is 1 set var. to 0; if var. is 0 set var. to 1; result - var. changed in 1 because is worked second part, when was changed from 0 to 1
On second click variable is now 1:
(II) If var. is 1 set var. to 0; if var. is 0 set var. to 1; result - var. is same 1, because is worked both parts when first was changed from 1 to 0 and second from 0 to 1.
I remain to first method (hidden buttons).
Thanks Mark for your help and time
Leave a comment: