Pattern
if condition:
else if condition:
else:
else if and else belong to the same chain as if.
Use if when a section should run only when a
condition is true.
if condition:
else if condition:
else:
else if and else belong to the same chain as if.
import lib/std.dl
set score to 6
if score > 8:
print "High score" as line
else if score > 5:
print "Nice work" as line
else:
print "Keep going" as line
DynLex checks the branches from top to bottom. The first branch that matches runs.
Change 6 to 9. Then change it to 2.