third_party/wpilibsuite/allwpilib/wpilibc/src/main/native/cpp/Commands/ConditionalCommand.cpp
/**
 * Creates a new ConditionalCommand with given onTrue and onFalse Commands.
 *
 * @param onTrue  The Command to execute if Condition() returns true
 * @param onFalse The Command to execute if Condition() returns false
 */
Creates a new ConditionalCommand with given onTrue and onFalse Commands.
@param onTrue  The Command to execute if Condition() returns true
@param onFalse The Command to execute if Condition() returns false
Creates a new ConditionalCommand with given onTrue and onFalse Commands . @param onTrue The Command to execute if Condition () returns true @param onFalse The Command to execute if Condition () returns false
ConditionalCommand::ConditionalCommand(Command* onTrue, Command* onFalse) {
  m_onTrue = onTrue;
  m_onFalse = onFalse;
  RequireAll(*this, onTrue, onFalse);
}
ConditionalCommand :: ConditionalCommand ( Command * onTrue , Command * onFalse ) { m_onTrue = onTrue ; m_onFalse = onFalse ; RequireAll ( * this , onTrue , onFalse ) ; }
Creates a new ConditionalCommand with given onTrue and onFalse Commands.
Creates a new ConditionalCommand with given onTrue and onFalse Commands .