Hi all!

I'll try string variables in CASE. But I have error - "syntax error, unexpected TEXT"

function casetest(string aaa)
{
    if aaa ~ "a1" then print "ok";
    case aaa {
    "a1" : print "a1";
    "b1" : print "b1";
    else: print "not a1, nor b1";
    }
}

Sometimes it will be comfortable. Why it is error?

--

Regards,
Mikhail V. Majorov

Reply via email to