You're missing a ; and a }. You also haven't told us anything about the digitalToggle function, the DigitalToggle library, or where inputPin gets a value, or even what it's type is. Nor have you told us anything about outputPin.
OK,
will this extra small code work?
the digital toggle is from the playground, I'm pretty sure this will work, but if you see a problem let me know
// door V1.0
#include <DigitalToggle.h>
int buttonPin=12;
int ledPin = 13;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop(){
if (buttonPin= HIGH);
digitalToggle(ledPin);
}
if (buttonPin= HIGH);
This code will set buttonPin to HIGH (= is an assignment, == is an equality test). Then, since the result is not 0, the statement that follows (;, a no-op) will be executed.
Since buttonPin is the number of the pin that the button is connected to, not the state of the pin, you need to read the status of that pin, somewhere, using digitalRead.