View Single Post
  #7   Spotlight this post!  
Unread 13-02-2014, 01:48
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Using Coniditionals to Build Custom Command Groups

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.
__________________
I code stuff.
Reply With Quote