TEXT in case constraint

Mikhail Mayorov mm at tagan.ru
Sat Sep 3 16:08:14 CEST 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20220903/6f0577da/attachment.htm>


More information about the Bird-users mailing list