|
Re: Conditional Command Group?
Having the command handle the logic still seems like the solution to your problem. You can write a new Cmd2IfSomeConditionExists command that wraps your original Cmd2 and only executes logic if the condition is true.
We're also fans of state machines for more complicated scenarios.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament
2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
|