Var troubles

hey guys,

well I have a frame that has a variable named language and it’s value will depend on the button clicked.

var language:String;

enterBtn.onRelease = function() {
    language = "eng";

now on frame 23 I have



if (language == fr) {    
    trace("selected language is french");
else if (language == eng) {
    trace("selected language is english");

my problem is that no matter what the language is it won’t go in any of the if statements, nothing gets traced except the last trace which tells me what language has been selected and that works perfectly.

I can’t seem to find the problem, can someone please help me out