diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:53:04 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:53:04 +0200 |
| commit | adc4b59a3e7c9db6f33670164490830d87331228 (patch) | |
| tree | adc5d21856852bfb5c3cca794a9c07ad476d877e /examples/control.fy | |
| parent | 63cf3028445d8d213ffc774f77aafd7283cb4fbd (diff) | |
| parent | 5ab5de91eb0ae6ed9db78a2c8c47ec67f105e504 (diff) | |
Mergebuild-010393-lambda
Diffstat (limited to 'examples/control.fy')
| -rw-r--r-- | examples/control.fy | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/control.fy b/examples/control.fy deleted file mode 100644 index 0deac78..0000000 --- a/examples/control.fy +++ /dev/null @@ -1,32 +0,0 @@ -#* - * Examples of how to use control statements - *# - -if 1 { - say "if 1"; -} - -ifnot 0 == 1 { - say "ifnot 0 == 1"; -} - -# Calculate 10! - -my n = 10, fac = 0; - -while n > 1 { - ifnot fac { - fac = 1; - } - say fac = (fac * n); - decr n; -} - -# Count up to 10 - -n = 0; - -until n == 10 { - say incr n; -} - |
