Quote:
Originally Posted by Ginto8
My team created a class just for this purpose here. To use it:
Code:
addSequential(new Conditional(<Command for true>,<Command for false>) {
protected boolean condition() {
return <condition>;
}
});
<Command for true> and <Command for false> can be any command, or null if you want nothing to run in that case.
|
Hey, just wanted to say thanks for posting your Conditional class - that is an awesome solution to dealing with building conditional command groups! I will be forwarding this to our programmers as they were just recently asking about conditional commands.