Mute volume toggle AS 2.0 issue

Ok, so I’m prepared to be bombarded with cries of newbie (which I am), but I’m having some trouble with a syntax issue that I cant figure out.

on(release){
if (globalvolume.getVolume()==100)
{
globalVolume.setVolume(0);
}
else {
globalVolume.setVolume(100);
}

I’m missing something here that I’m sure is very simple, probably an errant } or such.

Can some kind folk point it out to me?