A Sip of Syntax...

Comments

# A single comment

##
A
multi-line
comment
##

Functions

func add(num1, num2)
{
  num1 + num2
}

sum = add(5, 3) # sum equals 8

Flow Control

myVar = true

if myVar
  executeFunc()

while myVar
  executeFunc()

do
  executeFunc()
while myVar

# Within a switch, "if" takes the place of "case" and "else" takes the place of "default".
# "break" is also implicit.
num = 2
switch num
{
  if 1:
    executeFunc1()
  if 2:
    executeFunc2()
  else:
    executeFunc3()
}

# Jumping to labels is supported.
label:
goto label