Possible to ignore some line of the script?

Ok. I’m new here, and this is my 1st post up here.
I would like to know that isit possible to ignore some line of script without the "//"thingy. As example like I have this function, and there is 2 buttons sharing the action, but for the 2nd button, I would like it to ignore some line of the function, so would it be possible?

example:

[COLOR=Black][COLOR=DarkSlateBlue][COLOR=Black]_root[“slide”+i][“ani”+i][“btn”+i].onRollOver = function() {
tellTarget (slide1.ani1) {
gotoAndPlay(2);
}
name = this._name;
num = name.substring(3, 4);
_root.mcRollOver(num);
};
[/COLOR][/COLOR][/COLOR]

So this is function for the both button, but I would like the 2nd button the ignore the: tellTarget (slide1.ani1) {
gotoAndPlay(2);
}
so isit possible?