okto/example.okto
2025-01-08 15:09:14 +11:00

25 lines
461 B
Plaintext
Executable File

#!/home/max/code/okto/okto
// Hello! This is some example Okto code to help you get started.
// Log something to the console...
log "Hello Okto!"
log 3.14159
log 7
// Log a variable to the console
str myString = "Hello Okto String!"
log "${myString}"
// Do some stuff with integers
// All this stuff can be done with decimals too, using the "dec" keyword.
int myInt = 5
log $myInt
myInt ++
log $myInt
myInt = $myInt + 4
log $myInt
// Exit the program
exit