melt/Script/test.melt

27 lines
335 B
Plaintext

x = 1 ; comments with semicolons
print "x is {x}" ; %x?
print "double x is {2x}"
if x is 142
print "x is equal"
elseif x
print "x is truthy" ; whats up
else
print "x is falsy"
loop
print "infinite loop"
print "just kidding"
break
for 5
x++
print "this prints 5 times"
print "x is now {x}"
y = if x is 6
"yes"
else
"no"