# Variables must be snake_case. let hello_world = "Hello, world" # Define a global variable, accessible anywhere. It is put on its own stack. global hello_world = "Poggers" let num = 5 if num % 2 == 0: log.info("fair") else: log.info("strange") end loop: # infinite loop break end loop num > 0: # conditional loop if num == 4: num = 3 next # equivalent to continue in other languages end num -= 1 end let list = [1, 2, 5, 4] loop i in list: # iterator loop log.info(i) end fun main:init() end fun sum(a, b) ret a + b fun print_sum(a, b) let val = sum(a, b) log.info(val) end do: # Standalone scope let a = 1 log.info(a) end