If frame number

on (release) {
	if (_root.navigation = 8) {
		_root.navigation.gotoAndPlay(9);
	}
}

can any1 help me with this code?

i want it so if “navigation” mc is on frame 8 then it goes to play 9
but if it isnt then it does nothing