Is this valid code? (if, else if...)

This code doesn’t seem to be working and I am wondering if I am using the if… else if… logic incorrectly:


onEnterFrame = function():Void{
    if(this._currentframe > 1946){
        _parent.slideTo(slideX[3], slideY[3], 1, "easeInOutQuart");
    }
    if(this._currentframe < 1946){
        _parent.slideTo(slideX[2], slideY[2], 1, "easeInOutQuart");
    }
    else if(this._currentframe > 1295){
        _parent._parent.footerMC.dialoguePanel(125, -300, 300, 300, "text/tx3-4.txt");
    }
    else if(this._currentframe > 940){
        _parent._parent.footerMC.dialoguePanel(125, -140, 350, 125, "text/tx3-3.txt");
    }
    else if(this._currentframe > 434){
        _parent._parent.footerMC.dialoguePanel(125, -175, 375, 150, "text/tx3-2.txt");
    }
}

This code is meant to assist the fast-forward and reverse buttons catch actions that occur on the timeline as they travel along skipping 15 frames at a time, but the actions are not being caught for some reason.
If someone would point out what I am doing wrong…