summaryrefslogtreecommitdiffstats
path: root/doc/scriptexamples/switchstress.kvs
blob: 883383d248cdd29f06df0ec9e0dfe155226676fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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"
	}

}