I have this script which basically is this:

if (getProperty (_parent, _currentframe)==1) {
gotoAndStop(1);
}

But I want to have it check the variable(which could be any frame)-15 frames instead of check to see if it's at frame 1

so I tried to put:
if (getProperty (_parent, _currentframe)==current-15) {
gotoAndStop(1);
}

However this doesn't work. I don't know if I'm getting the syntax right. The variable is "current"