If else statement help!

I’m having problems trying to understand if else statements. I’m trying to create a simple transitions in my movie to navigate to different scenes using buttons:

on (release) {
if destination = “about”;
gotoAndPlay(“transition”);
} else {
destination = “contact”
gotoAndPlay(“transition2”);
}

Can anyone help me?