aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-02-07 09:26:36 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-02-07 09:26:36 -0500
commit2b8cf5e771cac4c2b087dc96a7ca05a459f630b5 (patch)
treed1e25ef8520e9df936c231af0d5b760177d6cbde /script
parente3cbc8086c25d4fc1d9413815643b3ecaaee2062 (diff)
conditionals, returns, cleaner code
Diffstat (limited to 'script')
-rw-r--r--script18
1 files changed, 15 insertions, 3 deletions
diff --git a/script b/script
index b31a18e..3b807a2 100644
--- a/script
+++ b/script
@@ -1,5 +1,17 @@
+func inc
+ set arg0 (arg0 + 1)
+ ret arg0
+end
+
set a 0
do
- put a
- set a (a+1)
-while (a<5)
+ inc a > a
+ if ((a % 9) == 0)
+ put a
+ end
+while (a < 100)
+
+if (a == 100)
+ put "All good!"
+end
+