I need 3 digital inputs to control 2 outputs

Can someone please help me with this program problem? I need to be able to read 3 different digital inputs to give 2 outputs an example would be:
Input 1 = HIGH
Input 2 = HIGH
Input 3 = LOW


Output 1 = LOW
Output 2 = HIGH
I need it to be all or nothing so if input 1 is LOW and the rest are HIGH there will be no outputs. I have tried IF function and I cant get it to work can someone please tell me what to do???? I am brand new to Arduino so forgive me if it is something simple.

const int Button1Pin = 2; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
const int Button2Pin = 3;
const int Button3Pin = 4;
const int testPin1 = 5

// variables will change:
int buttonState1 = 0; // variable for reading the pushbutton status
int buttonState2 = 0;
int buttonState3 = 1;

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(Button1Pin, INPUT);
pinMode(Button2Pin, INPUT);
pinMode(Button3Pin, INPUT);

}

void loop(){
// read the state of the pushbutton value:
buttonState1 = digitalRead(Button1Pin);
buttonState2 = digitalRead(Button2Pin);
buttonState3 = digitalRead(Button3Pin);

// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
if ((buttonState1 == 1) && (buttonState2 == 1));
// turn LED on:
digitalWrite(testPin1, HIGH);
if ((testPin1 == 1) && (buttonState3 == 0));
digitalWrite(ledPin, HIGH);

else {
// turn LED off:
digitalWrite(ledPin, LOW);
}

}

There may be other problems but I looked no further thanif ((buttonState1 == 1) && (buttonState2 == 1));Remove the semi-colon or the if will not be acted upon.

(deleted)

Also you need { and } around your if response or action.

(deleted)

jxs058959:
Can someone please help me with this program problem?

you could try by starting with a little state table, like the attached, and define what you want to do for each of the possible outcomes, even if it is to ignore many of them

pseudo code:

void loop()
{
  //read the state of each of the three pins...
  if (a == LOW && b = LOW) 
  {
     if (c == LOW)
    {
      //do this thing
    }
    else
    {
      //do this other thing
    }
  }
  else if (a == LOW && b = HIGH) 
  {
     if (c == LOW)
    {
      //do this thing
    }
    else
    {
      //do this other thing
    }
etc...

Start by building a truth table and see if you can simplify your logic.

BulldogLowell:

  if (a == LOW && b = LOW && c == LOW)

Ahem! :blush:

PeterH:

BulldogLowell:

  if (a == LOW && b = LOW && c == LOW)

Ahem! :blush:

whoops!