From 1b670d703473fbf00cb6e1a8411e0e8c27e84c8e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 8 Aug 2024 00:19:51 +0300 Subject: 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 --- examples/ok-loop-huge.ph | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 examples/ok-loop-huge.ph 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 -- cgit v1.2.3