You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kvirc/doc/scriptexamples/switchstress.kvs

47 lines
490 B

echo "Beginning the test! =========================="
switch(test)
{
case(test)
{
echo "case(test)"
}
match(test)
{
echo "match(test)"
# comment
}
match(T*)
{
echo "match(T*)"
}
# Comment
match(T*): echo "match(T*) 2"
default: echo "default 1"
case(texto):
{
echo "case(texto)"
break
break
}
break;
default:
{
echo "default 2"
}
default:
{
echo "default 3"
}
break
regexp([a-z]*)
{
echo "match([a-z]*)"
}
default:
{
echo "default 4"
}
}