PID Library MISHAP!(Pls Help longTime problem)

void loop(){ 
  Input = encoder0Pos;
  myPID.Compute();
  if (Output > 0)
     {
     digitalWrite(directionPin, HIGH);
     analogWrite(5,Output);
     }
  else
    {
    digitalWrite(directionPin, LOW);
    analogWrite(5, -Output);
    }
}

But the Direction pin is put in the analogWrite's itself , I believe(If I'm right) You want me to put the Enable pin of the H-Bridge in analogWrite and the 2 Drirection inside the digitalWrite controlling ? , but my Didel encoder bridge only has a vcc supply and two direction control pins and no enable pin like in L293D or TI's SN IC
What to do as such?