View Single Post
  #8   Spotlight this post!  
Unread 13-02-2014, 06:25
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 103
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Using Coniditionals to Build Custom Command Groups

Quote:
Originally Posted by Ginto8 View Post
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.
Reply With Quote