]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/gmqcc-src/tests/ifs.qc
By fteqcc, hello gmqcc
[voretournament/voretournament.git] / misc / source / gmqcc-src / tests / ifs.qc
diff --git a/misc/source/gmqcc-src/tests/ifs.qc b/misc/source/gmqcc-src/tests/ifs.qc
new file mode 100644 (file)
index 0000000..7a7f13c
--- /dev/null
@@ -0,0 +1,10 @@
+void(float c) main = {
+    if (c == 1)
+        print("One\n");
+    else if (c == 2)
+        print("Two\n");
+    else if (c == 3)
+        print("Three\n");
+    else
+        print("Else\n");
+};