Lazy thunks & loops

note pure zero symbol fakescript program

import print as print

let printtrue be ln of print contains say true end
let i be 0

fn countup do
  loop when i is under 5 do
    ln of print contains i
    set i to i plus 1
  end
end

fn main do
  printtrue
  exec countup
  if i is 5 do
    ln of print contains say all done end
  end
end

exec main

Lists, stdlib & interactive input

import print
import text

fn main do
  ask say Enter your name  end into name
  ask num say Enter your birth year  end into year
  let age be 2026 minus year
  let loud be upper of text contains name
  ln of print contains say Hello end and loud and say you are about end and age
end

exec main

See the full language reference and standard library at FakeScript Docs.