RosettaCodeData/Task/Conditional-structures/I/conditional-structures.i

21 lines
260 B
OpenEdge ABL

software {
var a = 3
//This is not guaranteed to be quicker than a if-else chain.
switch a {
case 3
print("3=3")
case 2
print("WHAT?")
default
print("3!=2")
}
if a != 2
print("3!=2")
print("verified")
else
print("3=2!!!")
end
}