aboutsummaryrefslogtreecommitdiff
path: root/l/chaincond.lang
diff options
context:
space:
mode:
Diffstat (limited to 'l/chaincond.lang')
-rw-r--r--l/chaincond.lang14
1 files changed, 14 insertions, 0 deletions
diff --git a/l/chaincond.lang b/l/chaincond.lang
new file mode 100644
index 0000000..542cae9
--- /dev/null
+++ b/l/chaincond.lang
@@ -0,0 +1,14 @@
+func int main() {
+ int a := 0;
+ if (a == 0) {
+ a = 1;
+ } else {
+ a = 2;
+ }
+ if (a > 0) {
+ a = 10;
+ } else {
+ a = 20;
+ }
+ return a;
+} \ No newline at end of file