summaryrefslogtreecommitdiffstats
path: root/doc/scriptexamples/switchstress.kvs
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
commita6d58bb6052ac8cb01805a48c4ad2f129126116f (patch)
treedd867a099fcbb263a8009a9fb22695b87855dad6 /doc/scriptexamples/switchstress.kvs
downloadkvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.tar.gz
kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.zip
Added KDE3 version of kvirc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'doc/scriptexamples/switchstress.kvs')
-rw-r--r--doc/scriptexamples/switchstress.kvs46
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/scriptexamples/switchstress.kvs b/doc/scriptexamples/switchstress.kvs
new file mode 100644
index 00000000..883383d2
--- /dev/null
+++ b/doc/scriptexamples/switchstress.kvs
@@ -0,0 +1,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"
+ }
+
+}