<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi!</p>
<p>I try use CASE and string variable and a have error.... I checked
<a
href="https://bird.network.cz/?get_doc&f=bird.html&v=20"
title="User's guide 2.0">User's guide 2.0</a>.... CASE use
operator ~. This operator applies to string variables. What am I
doing wrong?<br>
</p>
<p>[root@wine etc]# cat 123.conf && bird -c ./123.conf -p<br>
function teststring(string myvar) -> bool<br>
{<br>
case myvar {<br>
"text A" : print "A"; return true;<br>
"text B" : print "B"; return true;<br>
"text C" : print "C"; return true;<br>
else : print "unknown"; return false;<br>
}<br>
}<br>
bird: ./123.conf:4:12 syntax error, unexpected TEXT<br>
</p>
<div class="moz-signature">-- <br>
<div class="moz-signature">
<pre>Regards,
Mikhail Mayorov
</pre>
</div>
</div>
</body>
</html>