Using Interrupts with second input

Hi,
I am struggling to use an interrupt with a second input using the &&, asfollows;

  const byte interruptPin = 3;
  const byte alarmPin = 9;

void setup()
  pinMode(3, INPUT);
  pinMode(9, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(interruptPin), trigSMS, CHANGE);

void loop()

if(flag)
  {
    int val3 = digitalRead(alarmPin);
    int val = digitalRead(interruptPin); 

    if(val==LOW && val3=LOW);

the if(val==LOW && val3=LOW); does not work, is there a workaround ?

Dan

dannyrfish:
Hi,
I am struggling to use an interrupt with a second input using the &&, asfollows;

    if(val==LOW && val3=LOW);

the if(val==LOW && val3=LOW); does not work, is there a workaround ?

Use the correct syntax?

Get rid of the trailing semicolon?

Add some controlled statements enclosed in curly braces?

if(val==LOW && val3=LOW);

Do you mean:
if(val==LOW && val3==LOW)

Paul