diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-08 00:19:51 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-08 00:19:51 +0300 |
commit | 1b670d703473fbf00cb6e1a8411e0e8c27e84c8e (patch) | |
tree | eec21fb0dbae090ea4a1174285f400c05f08dcab | |
parent | eced5cc03052690c453c9bc2e7c275c2a6a1b1a5 (diff) | |
download | posthaste-1b670d703473fbf00cb6e1a8411e0e8c27e84c8e.tar.gz posthaste-1b670d703473fbf00cb6e1a8411e0e8c27e84c8e.zip |
add simple loop example
+ Will need to add more posthaste script examples to show off
exactly what this puppy can do but this is good enough for now
-rw-r--r-- | examples/ok-loop-huge.ph | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/ok-loop-huge.ph b/examples/ok-loop-huge.ph new file mode 100644 index 0000000..2381537 --- /dev/null +++ b/examples/ok-loop-huge.ph @@ -0,0 +1,9 @@ +var sum = 0 +var idx = 0 + +do + sum = sum + idx, + idx = idx + 1 +until idx = 1000000001, + +print sum |