Quote:
Originally Posted by Greg McKaskle
Focussing on the original problem, I'm curious what solution you would have done in a text language? I ask this because this sort of thing comes up often as folks are just learning to program or are learning a new language, and I'm wanting to make sure that I understand the things that kept you from finding the solution.
Greg McKaskle
|
In a text language, I'd just make a boolean PneumaticsRetracted or something like that. Then when I press the right button, if the bool is true, do one thing, if it's false, do the other. And in both, change the bool's value to the opposite of course