Skip to content

Syntax and highlighting — English

Conditions, loops and logical operators use English vocabulary while sharing one semantic model.

x is a integer
x = 3
If x > 0 And x < 10 Then:
    Display "positive"
Else If x = 0 Or x = -0 Then:
    Display "zero"
Else:
    Display "negative"
End

For i from 1 to 3 with a step of 1:
    Display i
End

i = 0
While i < 3:
    Display i
    i = i + 1
End

Unicode identifiers are supported natively regardless of the language alphabet.

Types

Types Local names
integer integer, int, integers
float float, real, floats
string string, str, strings
boolean boolean, bool, booleans
array array, list, arrays
dictionary dictionary, dict, dictionaries
set set, sets
tuple tuple, tuples