Magik
Magik is a proprietry language created by GE Network Solutions to use in their GIS product Smallworld. It is based around Smalltalk and designed to allow rapid application development.
Code Basics
Assignment
var1 << "test"
If Statement
_if 1 > 2
_then
write("1 is greater than 2")
_endif
Switch Statement
Magik does not have a switch statement, but the if statement can be used to similar effect
_if var1 > 10
_then
write("greater than 10")
_elif var1 > 5
_then
write("greater than 5")
_else
write("less than 5")
_endif
For Loop
_for var1 over a_col.fast_elements()
_loop
write(var1)
_endif